]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cmake: use new CMP0127 policy
authorKefu Chai <tchaikov@gmail.com>
Sun, 19 Dec 2021 04:22:16 +0000 (12:22 +0800)
committerKefu Chai <tchaikov@gmail.com>
Sun, 19 Dec 2021 07:02:10 +0000 (15:02 +0800)
commit997715e25902b92968fe09f5c9f00249fad9676b
treec261bf15704193e2f716fee6ce9893b44ce4b736
parent7b7686df855d0dfa1dee78eff8ed948f31b0ce0f
cmake: use new CMP0127 policy

CMP0127 is a new policy introduced by CMake 3.22. without specifying
the policy, we'd have following warning when configuring the building
system using CMake 3.22:

CMake Warning (dev) at /usr/share/cmake-3.22/Modules/CMakeDependentOption.cmake:84 (message):
  Policy CMP0127 is not set: cmake_dependent_option() supports full Condition
  Syntax.  Run "cmake --help-policy CMP0127" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
  CMakeLists.txt:255 (CMAKE_DEPENDENT_OPTION)
This warning is for project developers.  Use -Wno-dev to suppress it.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
CMakeLists.txt