How to fix unstable build on buildfarm for noetic because of CMP0048?
I have just released my package on Neotic and the buildfarm reports an unstable build on Ndev_*
because of CMake warning CMP0048 than means that VERSION
is not provided in the project()
.
From the console output:
16:09:34 CMake Warning (dev) at CMakeLists.txt:2 (project):
16:09:34 Policy CMP0048 is not set: project() command manages VERSION variables.
16:09:34 Run "cmake --help-policy CMP0048" for policy details. Use the cmake_policy
16:09:34 command to set the policy and suppress this warning.
16:09:34
16:09:34 The following variable(s) would be set to empty:
16:09:34
16:09:34 CMAKE_PROJECT_VERSION
16:09:34 CMAKE_PROJECT_VERSION_MAJOR
16:09:34 CMAKE_PROJECT_VERSION_MINOR
16:09:34 CMAKE_PROJECT_VERSION_PATCH
16:09:34 This warning is for project developers. Use -Wno-dev to suppress it.
I have checked other ROS packages and they don't seem to provide a version in their CMakeLists.txt
nor set the CMP0048
policy explicitly.