darling
darling copied to clipboard
CMake Warning
Build Log What is the build error?
CMake Warning (dev) at CMakeLists.txt:42 (project):
Policy CMP0048 is not set: project() command manages VERSION variables.
Run "cmake --help-policy CMP0048" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
The following variable(s) would be set to empty:
CMAKE_PROJECT_VERSION
CMAKE_PROJECT_VERSION_MAJOR
CMAKE_PROJECT_VERSION_MINOR
CMAKE_PROJECT_VERSION_PATCH
This warning is for project developers. Use -Wno-dev to suppress it.
System Information What system are you building with? Ubuntu 20.04.3 LTS
| Software | Version |
|---|---|
| CMake | 3.16.3 |
| Linux Kernel | 5.11.0-27-generic |
| Darling | 597325bc702e7b0893ade8272000a4086b23f121 |
you could set explicitly setting policy CMP0048 (before project()) either way would silence this warning:
if (POLICY CMP0048)
cmake_policy(SET CMP0048 NEW)
endif (POLICY CMP0048)`
or you set
if (POLICY CMP0048)
cmake_policy(SET CMP0048 OLD)
endif (POLICY CMP0048)
that will not create any new empty variables
(btw. how i can enable syntax highlighting for cmake code in github?)