nappgui_src icon indicating copy to clipboard operation
nappgui_src copied to clipboard

CMake warning

Open alex-s168 opened this issue 1 year ago • 1 comments

> cmake -S . -B build -DNAPPGUI_DEMO=NO -DCMAKE_GENERATOR_PLATFORM=WIN32 
CMake Deprecation Warning at CMakeLists.txt:6 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeGenericSystem.cmake:97 (elseif):
  Policy CMP0054 is not set: Only interpret if() arguments as variables or
  keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  Quoted variables like "WIN32" will no longer be dereferenced when the
  policy is set to NEW.  Since the policy is not set the OLD behavior will be
  used.
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeGenericSystem.cmake:195 (GetDefaultWindowsPrefixBase)
  C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeSystemSpecificInformation.cmake:27 (include)
  CMakeLists.txt:7 (project)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeGenericSystem.cmake:99 (elseif):
  Policy CMP0054 is not set: Only interpret if() arguments as variables or
  keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  Quoted variables like "WIN32" will no longer be dereferenced when the
  policy is set to NEW.  Since the policy is not set the OLD behavior will be
  used.
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeGenericSystem.cmake:195 (GetDefaultWindowsPrefixBase)
  C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeSystemSpecificInformation.cmake:27 (include)
  CMakeLists.txt:7 (project)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeGenericSystem.cmake:103 (elseif):
  Policy CMP0054 is not set: Only interpret if() arguments as variables or
  keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  Quoted variables like "WIN32" will no longer be dereferenced when the
  policy is set to NEW.  Since the policy is not set the OLD behavior will be
  used.
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeGenericSystem.cmake:195 (GetDefaultWindowsPrefixBase)
  C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeSystemSpecificInformation.cmake:27 (include)
  CMakeLists.txt:7 (project)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake version:

> cmake --version
cmake version 3.29.0-rc1

alex-s168 avatar Mar 22 '24 07:03 alex-s168

Thanks for report. I will test NAppGUI with lastest CMake version.

frang75 avatar Mar 23 '24 19:03 frang75

Fixed in this commit: https://github.com/frang75/nappgui_src/commit/cda8a3fccf101ecae03a383fd481517518d70075 Thanks for reporting.

frang75 avatar May 21 '24 17:05 frang75