Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake warning #119

Closed
alex-s168 opened this issue Mar 22, 2024 · 2 comments
Closed

CMake warning #119

alex-s168 opened this issue Mar 22, 2024 · 2 comments
Assignees
Labels
build-system Issue related with CMake or compilers

Comments

@alex-s168
Copy link

> 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 frang75 self-assigned this Mar 23, 2024
@frang75 frang75 added the build-system Issue related with CMake or compilers label Mar 23, 2024
@frang75
Copy link
Owner

frang75 commented Mar 23, 2024

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

@frang75
Copy link
Owner

frang75 commented May 21, 2024

Fixed in this commit: cda8a3f
Thanks for reporting.

@frang75 frang75 closed this as completed Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-system Issue related with CMake or compilers
Projects
None yet
Development

No branches or pull requests

2 participants