frang75 / nappgui_src

SDK for building cross-platform desktop apps in ANSI-C
https://www.nappgui.com
MIT License
442 stars 43 forks source link

CMake warning #119

Open alex-s168 opened 1 month ago

alex-s168 commented 1 month ago
> 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
frang75 commented 1 month ago

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