CMAKE_POLICY_WARNING_CMP<NNNN>
Explicitly enable or disable the warning when CMake Policy CMP<NNNN> has not been set explicitly by cmake_policy() or implicitly by cmake_minimum_required(). This is meaningful only for the policies that do not warn by default:
-
CMAKE_POLICY_WARNING_CMP0025controlled the warning for policyCMP0025in CMake versions before 4.0. -
CMAKE_POLICY_WARNING_CMP0047controlled the warning for policyCMP0047in CMake versions before 4.0. -
CMAKE_POLICY_WARNING_CMP0056controlled the warning for policyCMP0056in CMake versions before 4.0. -
CMAKE_POLICY_WARNING_CMP0060controlled the warning for policyCMP0060in CMake versions before 4.0. -
CMAKE_POLICY_WARNING_CMP0065controlled the warning for policyCMP0065in CMake versions before 4.0. -
CMAKE_POLICY_WARNING_CMP0066controls the warning for policyCMP0066. -
CMAKE_POLICY_WARNING_CMP0067controls the warning for policyCMP0067. -
CMAKE_POLICY_WARNING_CMP0082controls the warning for policyCMP0082. -
CMAKE_POLICY_WARNING_CMP0089controls the warning for policyCMP0089. -
CMAKE_POLICY_WARNING_CMP0102controls the warning for policyCMP0102. -
CMAKE_POLICY_WARNING_CMP0112controls the warning for policyCMP0112. -
CMAKE_POLICY_WARNING_CMP0116controls the warning for policyCMP0116. -
CMAKE_POLICY_WARNING_CMP0126controls the warning for policyCMP0126. -
CMAKE_POLICY_WARNING_CMP0128controls the warning for policyCMP0128. -
CMAKE_POLICY_WARNING_CMP0129controls the warning for policyCMP0129. -
CMAKE_POLICY_WARNING_CMP0133controls the warning for policyCMP0133. -
CMAKE_POLICY_WARNING_CMP0172controls the warning for policyCMP0172. -
CMAKE_POLICY_WARNING_CMP0206controls the warning for policyCMP0206.
This variable should not be set by a project in CMake code. Project developers running CMake may set this variable in their cache to enable the warning (e.g. -DCMAKE_POLICY_WARNING_CMP<NNNN>=ON). Alternatively, running cmake(1) with the --debug-output, --trace, or --trace-expand option will also enable the warning.
© 2000–2026 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/latest/variable/CMAKE_POLICY_WARNING_CMPNNNN.html