Diagnostics: "Fix" policy warnings in modules

Introduce a mechanism (via the private and undocumented `ISSUE_WARNING`
option to the `cmake_policy` command) to allow built-in modules to issue
policy warnings. Update modules to use this.

This allows modules to issue policy warnings with the `CMD_POLICY`
diagnostic type, which is consistent with internally issued diagnostics.
This also tends to simplify the logic for issuing such warnings in much
the way the helpers introduced in the previous commit did for the C++
code.
This commit is contained in:
Matthew Woehlke
2026-05-20 15:32:57 -04:00
parent a7415d243a
commit 763cfbcac8
35 changed files with 171 additions and 150 deletions
+1 -6
View File
@@ -506,18 +506,13 @@ installation phase:
")
#]=======================================================================]
function(_warn_cmp0080)
cmake_policy(GET_WARNING CMP0080 _cmp0080_warning)
message(AUTHOR_WARNING "${_cmp0080_warning}\n")
endfunction()
# Do not include this module at configure time!
if(DEFINED CMAKE_GENERATOR)
cmake_policy(GET CMP0080 _BundleUtilities_CMP0080)
if(_BundleUtilities_CMP0080 STREQUAL "NEW")
message(FATAL_ERROR "BundleUtilities cannot be included at configure time!")
elseif(NOT _BundleUtilities_CMP0080 STREQUAL "OLD" AND NOT _CMP0080_SUPPRESS_WARNING)
_warn_cmp0080()
cmake_policy(ISSUE_WARNING CMP0080)
endif()
endif()
+1 -2
View File
@@ -246,8 +246,7 @@ macro(CMAKE_DEPENDENT_OPTION option doc default depends force)
set(${option} "${${option}_ISSET}")
endif()
if("x${_CDO_CMP0127}x" STREQUAL "xx" AND "x${depends}x" MATCHES "[^A-Za-z0-9_.; ]")
cmake_policy(GET_WARNING CMP0127 _CDO_CMP0127_WARNING)
message(AUTHOR_WARNING "${_CDO_CMP0127_WARNING}")
cmake_policy(ISSUE_WARNING CMP0127)
endif()
unset(_CDO_CMP0127)
endmacro()
+1 -2
View File
@@ -234,8 +234,7 @@ else()
endif()
if("ASM${ASM_DIALECT}" STREQUAL "ASM" AND CMAKE_ASM_COMPILER_ID STREQUAL "MSVC" AND _CMAKE_ASM_CMP0194 STREQUAL "")
cmake_policy(GET_WARNING CMP0194 _CMAKE_ASM_CMP0194_WARNING)
message(AUTHOR_WARNING "${_CMAKE_ASM_CMP0194_WARNING}")
cmake_policy(ISSUE_WARNING CMP0194)
endif()
# If we have a gas/as cross compiler, they have usually some prefix, like
+9 -15
View File
@@ -899,10 +899,9 @@ if(NOT DEFINED CPACK_DMG_SLA_USE_RESOURCE_FILE_LICENSE
cmake_policy(GET CMP0133 _CPack_CMP0133)
if(NOT "x${_CPack_CMP0133}x" STREQUAL "xNEWx")
if(NOT "x${_CPack_CMP0133}x" STREQUAL "xOLDx" AND CMAKE_POLICY_WARNING_CMP0133)
cmake_policy(GET_WARNING CMP0133 _CMP0133_warning)
message(AUTHOR_WARNING
"${_CMP0133_warning}\n"
"For compatibility, CMake will enable the SLA in the CPack DragNDrop Generator."
cmake_policy(ISSUE_WARNING CMP0133 POST
"For compatibility, CMake will enable the SLA "
"in the CPack DragNDrop Generator."
)
unset(_CMP0133_warning)
endif()
@@ -925,10 +924,9 @@ if(NOT DEFINED CPACK_WIX_INSTALL_SCOPE)
if("x${_CPack_CMP0172}x" STREQUAL "xNEWx")
_cpack_set_default(CPACK_WIX_INSTALL_SCOPE perMachine)
elseif(NOT "x${_CPack_CMP0172}x" STREQUAL "xOLDx" AND CMAKE_POLICY_WARNING_CMP0172)
cmake_policy(GET_WARNING CMP0172 _CMP0172_warning)
message(AUTHOR_WARNING
"${_CMP0172_warning}\n"
"For compatibility, CMake will not enable per-machine installation by default in the CPack WIX Generator."
cmake_policy(ISSUE_WARNING CMP0172 POST
"For compatibility, CMake will not enable per-machine installation "
"by default in the CPack WIX Generator."
)
unset(_CMP0172_warning)
endif()
@@ -942,13 +940,11 @@ if("x${_CPack_CMP0161}x" STREQUAL "xNEWx")
elseif(APPLE AND CPACK_BINARY_PRODUCTBUILD AND
NOT DEFINED CPACK_PRODUCTBUILD_DOMAINS AND
NOT "x${_CPack_CMP0161}x" STREQUAL "xOLDx")
cmake_policy(GET_WARNING CMP0161 _CMP0161_warning)
message(AUTHOR_WARNING
"${_CMP0161_warning}\n"
cmake_policy(ISSUE_WARNING CMP0161 POST
"For compatibility, CPACK_PRODUCTBUILD_DOMAINS will remain unset. "
"Explicitly setting CPACK_PRODUCTBUILD_DOMAINS or setting policy CMP0161 "
"to NEW will prevent this warning."
)
)
unset(_CMP0161_warning)
endif()
unset(_CPack_CMP0161)
@@ -958,9 +954,7 @@ if(NOT DEFINED CPACK_ARCHIVE_UID AND NOT DEFINED CPACK_ARCHIVE_GID)
cmake_policy(GET CMP0206 _CPack_CMP0206)
if(NOT "x${_CPack_CMP0206}x" STREQUAL "xNEWx")
if(NOT "x${_CPack_CMP0206}x" STREQUAL "xOLDx" AND CMAKE_POLICY_WARNING_CMP0206)
cmake_policy(GET_WARNING CMP0206 _CMP0206_warning)
message(AUTHOR_WARNING
"${_CMP0206_warning}\n"
cmake_policy(ISSUE_WARNING CMP0206 POST
"For compatibility, CMake will set archive UID/GID to -1/-1."
)
unset(_CMP0206_warning)
+1 -5
View File
@@ -151,11 +151,7 @@ macro(CHECK_INCLUDE_FILE INCLUDE VARIABLE)
elseif("x${_CIF_CMP0075}x" STREQUAL "xOLDx")
elseif(NOT _CIF_CMP0075_WARNED)
set(_CIF_CMP0075_WARNED 1)
message(AUTHOR_WARNING
"Policy CMP0075 is not set: Include file check macros honor CMAKE_REQUIRED_LIBRARIES. "
"Run \"cmake --help-policy CMP0075\" for policy details. "
"Use the cmake_policy command to set the policy and suppress this warning."
"\n"
cmake_policy(ISSUE_WARNING CMP0075 POST
"CMAKE_REQUIRED_LIBRARIES is set to:\n"
" ${CMAKE_REQUIRED_LIBRARIES}\n"
"For compatibility with CMake 3.11 and below this check is ignoring it."
+1 -5
View File
@@ -120,11 +120,7 @@ macro(CHECK_INCLUDE_FILE_CXX INCLUDE VARIABLE)
elseif("x${_CIF_CMP0075}x" STREQUAL "xOLDx")
elseif(NOT _CIF_CMP0075_WARNED)
set(_CIF_CMP0075_WARNED 1)
message(AUTHOR_WARNING
"Policy CMP0075 is not set: Include file check macros honor CMAKE_REQUIRED_LIBRARIES. "
"Run \"cmake --help-policy CMP0075\" for policy details. "
"Use the cmake_policy command to set the policy and suppress this warning."
"\n"
cmake_policy(ISSUE_WARNING CMP0075 POST
"CMAKE_REQUIRED_LIBRARIES is set to:\n"
" ${CMAKE_REQUIRED_LIBRARIES}\n"
"For compatibility with CMake 3.11 and below this check is ignoring it."
+1 -5
View File
@@ -175,11 +175,7 @@ macro(CHECK_INCLUDE_FILES INCLUDE VARIABLE)
elseif("x${_CIF_CMP0075}x" STREQUAL "xOLDx")
elseif(NOT _CIF_CMP0075_WARNED)
set(_CIF_CMP0075_WARNED 1)
message(AUTHOR_WARNING
"Policy CMP0075 is not set: Include file check macros honor CMAKE_REQUIRED_LIBRARIES. "
"Run \"cmake --help-policy CMP0075\" for policy details. "
"Use the cmake_policy command to set the policy and suppress this warning."
"\n"
cmake_policy(ISSUE_WARNING CMP0075 POST
"CMAKE_REQUIRED_LIBRARIES is set to:\n"
" ${CMAKE_REQUIRED_LIBRARIES}\n"
"For compatibility with CMake 3.11 and below this check is ignoring it."
+1 -3
View File
@@ -99,9 +99,7 @@ macro(__compiler_armclang lang)
cmake_policy(GET CMP0123 policy_CMP0123)
if(NOT "x${CMAKE_ARMClang_CMP0123}x" STREQUAL "xNEWx")
if(NOT "x${CMAKE_ARMClang_CMP0123}x" STREQUAL "xOLDx")
cmake_policy(GET_WARNING CMP0123 _cmp0123_warning)
message(AUTHOR_WARNING
"${_cmp0123_warning}\n"
cmake_policy(ISSUE_WARNING CMP0123 POST
"For compatibility, CMake will automatically add cpu/arch flags based "
"on the CMAKE_SYSTEM_PROCESSOR and/or CMAKE_SYSTEM_ARCH variables."
)
+1 -2
View File
@@ -43,8 +43,7 @@ whether testing support should be enabled. The default is ON.
# which will not warn. Warn again just in case.
cmake_policy(GET CMP0145 cmp0145)
if(cmp0145 STREQUAL "")
cmake_policy(GET_WARNING CMP0145 _cmp0145_warning)
message(AUTHOR_WARNING "${_cmp0145_warning}")
cmake_policy(ISSUE_WARNING CMP0145)
endif()
option(BUILD_TESTING "Build the testing tree." ON)
+1 -3
View File
@@ -26,9 +26,7 @@ if (_Documentation_policy STREQUAL "")
# Ignore the warning if the project is detected as VTK itself.
if (NOT CMAKE_PROJECT_NAME STREQUAL "VTK" AND
NOT PROJECT_NAME STREQUAL "VTK")
cmake_policy(GET_WARNING CMP0106 _Documentation_policy_warning)
message(AUTHOR_WARNING
"${_Documentation_policy_warning}\n"
cmake_policy(ISSUE_WARNING CMP0106 POST
"Documentation.cmake is VTK-specific code and should not be used in "
"non-VTK projects. This logic in this module is best shipped with the "
"project using it rather than with CMake.")
+3 -7
View File
@@ -2153,8 +2153,7 @@ function(ExternalProject_Add_StepTargets name)
)
endif()
elseif(cmp0114 STREQUAL "")
cmake_policy(GET_WARNING CMP0114 _cmp0114_warning)
string(APPEND _cmp0114_warning "\n"
string(JOIN "" _cmp0114_warning
"ExternalProject target '${name}' would depend on the targets for "
"step(s) '${steps}' under policy CMP0114, but this is being left out "
"for compatibility since the policy is not set."
@@ -2164,7 +2163,7 @@ function(ExternalProject_Add_StepTargets name)
"Also, the NO_DEPENDS option is deprecated in favor of policy CMP0114."
)
endif()
message(AUTHOR_WARNING "${_cmp0114_warning}")
cmake_policy(ISSUE_WARNING CMP0114 POST "${_cmp0114_warning}")
endif()
foreach(step IN LISTS steps)
_ep_step_add_target("${name}" "${step}" "${no_deps}")
@@ -2507,14 +2506,11 @@ function(ExternalProject_Add_Step name step)
set_property(TARGET ${name} PROPERTY
_EP_CMP0114_WARNED_INDEPENDENT_STEP_TARGETS 1
)
cmake_policy(GET_WARNING CMP0114 _cmp0114_warning)
string(APPEND _cmp0114_warning
"\n"
cmake_policy(ISSUE_WARNING CMP0114 POST
"ExternalProject '${name}' option INDEPENDENT_STEP_TARGETS is set to"
"\n ${independent_step_targets}\n"
"but the option is deprecated in favor of policy CMP0114."
)
message(AUTHOR_WARNING "${_cmp0114_warning}")
endif()
endif()
foreach(st IN LISTS independent_step_targets)
@@ -175,9 +175,7 @@ function(_ep_resolve_git_remote
set("${output_variable}" "${_resolved_git_remote_url}" PARENT_SCOPE)
return()
elseif(cmp0150 STREQUAL "")
cmake_policy(GET_WARNING CMP0150 _cmp0150_warning)
message(AUTHOR_WARNING
"${_cmp0150_warning}\n"
cmake_policy(ISSUE_WARNING CMP0150 POST
"A relative GIT_REPOSITORY path was detected. "
"This will be interpreted as a local path to where the project is being cloned. "
"Set GIT_REPOSITORY to an absolute path or set policy CMP0150 to NEW to avoid "
+1 -2
View File
@@ -966,8 +966,7 @@ function(ADD_FEATURE_INFO _name _depends _desc)
set_property(GLOBAL PROPERTY _CMAKE_${_name}_DESCRIPTION "${_desc}" )
if("x${_CDO_CMP0183}x" STREQUAL "xx" AND "x${_depends}x" MATCHES "[^A-Za-z0-9_.; ]")
cmake_policy(GET_WARNING CMP0183 _CDO_CMP0183_WARNING)
message(AUTHOR_WARNING "${_CDO_CMP0183_WARNING}")
cmake_policy(ISSUE_WARNING CMP0183)
endif()
unset(_CDO_CMP0183)
endfunction()
+1 -3
View File
@@ -536,9 +536,7 @@ else()
endif()
if(_OpenGL_GL_POLICY_WARN AND OPENGL_gl_LIBRARY AND OPENGL_opengl_LIBRARY AND OPENGL_glx_LIBRARY)
cmake_policy(GET_WARNING CMP0072 _cmp0072_warning)
message(AUTHOR_WARNING
"${_cmp0072_warning}\n"
cmake_policy(ISSUE_WARNING CMP0072 POST
"FindOpenGL found both a legacy GL library:\n"
" OPENGL_gl_LIBRARY: ${OPENGL_gl_LIBRARY}\n"
"and GLVND libraries for OpenGL and GLX:\n"
+6 -12
View File
@@ -381,12 +381,10 @@ function(gtest_add_tests)
# the latter.
set(__newArgs ${arg_new_EXTRA_ARGS})
if(NOT "${arg_EXTRA_ARGS}" STREQUAL "${__newArgs}")
cmake_policy(GET_WARNING CMP0178 cmp0178_warning)
message(AUTHOR_WARNING
cmake_policy(ISSUE_WARNING CMP0178 PRE
"The EXTRA_ARGS contain one or more empty values. Those empty "
"values are being silently discarded to preserve backward "
"compatibility.\n"
"${cmp0178_warning}"
"compatibility."
)
endif()
endblock()
@@ -634,24 +632,20 @@ function(gtest_discover_tests target)
set(test_executor ${test_executor})
if(NOT cmp0178 STREQUAL "OLD")
if(NOT "${test_executor}" STREQUAL "${test_executor_orig}")
cmake_policy(GET_WARNING CMP0178 cmp0178_warning)
message(AUTHOR_WARNING
cmake_policy(ISSUE_WARNING CMP0178 PRE
"The '${target}' target's TEST_LAUNCHER or CROSSCOMPILING_EMULATOR "
"test properties contain one or more empty values. Those empty "
"values are being silently discarded to preserve backward "
"compatibility.\n"
"${cmp0178_warning}"
"compatibility."
)
endif()
# Unescape semicolons from the PARSE_ARGV form's value before comparing
string(REPLACE [[\;]] ";" new_arg_EXTRA_ARGS "${new_arg_EXTRA_ARGS}")
if(NOT "${old_arg_EXTRA_ARGS}" STREQUAL "${new_arg_EXTRA_ARGS}")
cmake_policy(GET_WARNING CMP0178 cmp0178_warning)
message(AUTHOR_WARNING
cmake_policy(ISSUE_WARNING CMP0178 PRE
"The EXTRA_ARGS value contains one or more empty values. "
"Those empty values are being silently discarded to preserve "
"backward compatibility.\n"
"${cmp0178_warning}"
"backward compatibility."
)
endif()
endif()
+3 -6
View File
@@ -668,8 +668,7 @@ function(SWIG_ADD_SOURCE_TO_MODULE name outfiles infile)
endif()
else()
if (NOT module_name_policy)
cmake_policy(GET_WARNING CMP0086 _cmp0086_warning)
message(AUTHOR_WARNING "${_cmp0086_warning}\n")
cmake_policy(ISSUE_WARNING CMP0086)
endif()
endif()
@@ -839,8 +838,7 @@ function(SWIG_ADD_LIBRARY name)
set (UseSWIG_TARGET_NAME_PREFERENCE STANDARD)
else()
if (NOT target_name_policy)
cmake_policy(GET_WARNING CMP0078 _cmp0078_warning)
message(AUTHOR_WARNING "${_cmp0078_warning}\n")
cmake_policy(ISSUE_WARNING CMP0078)
endif()
if (NOT DEFINED UseSWIG_TARGET_NAME_PREFERENCE)
set (UseSWIG_TARGET_NAME_PREFERENCE LEGACY)
@@ -1057,8 +1055,7 @@ function(SWIG_ADD_LIBRARY name)
# Do *not* override the target's library prefix
else()
if (NOT csharp_naming_policy)
cmake_policy(GET_WARNING CMP0122 _cmp0122_warning)
message(AUTHOR_WARNING "${_cmp0122_warning}\n")
cmake_policy(ISSUE_WARNING CMP0122)
endif()
set_target_properties (${target_name} PROPERTIES PREFIX "")
endif()
+51
View File
@@ -2,9 +2,14 @@
file LICENSE.rst or https://cmake.org/licensing for details. */
#include "cmCMakePolicyCommand.h"
#include <cmext/string_view>
#include "cmArgumentParser.h"
#include "cmArgumentParserTypes.h"
#include "cmExecutionStatus.h"
#include "cmMakefile.h"
#include "cmPolicies.h"
#include "cmRange.h"
#include "cmStringAlgorithms.h"
namespace {
@@ -16,6 +21,8 @@ bool HandleVersionMode(std::vector<std::string> const& args,
cmExecutionStatus& status);
bool HandleGetWarningMode(std::vector<std::string> const& args,
cmExecutionStatus& status);
bool HandleIssueWarningMode(std::vector<std::string> const& args,
cmExecutionStatus& status);
}
// cmCMakePolicyCommand
@@ -55,6 +62,9 @@ bool cmCMakePolicyCommand(std::vector<std::string> const& args,
if (args[0] == "GET_WARNING") {
return HandleGetWarningMode(args, status);
}
if (args[0] == "ISSUE_WARNING") {
return HandleIssueWarningMode(args, status);
}
status.SetError(cmStrCat("given unknown first argument \"", args[0], '"'));
return false;
@@ -191,4 +201,45 @@ bool HandleGetWarningMode(std::vector<std::string> const& args,
return true;
}
bool HandleIssueWarningMode(std::vector<std::string> const& args,
cmExecutionStatus& status)
{
if (args.size() < 2) {
status.SetError(
"ISSUE_WARNING must be given at least one additional argument.");
return false;
}
// Get arguments.
std::string const& id = args[1];
struct Arguments
{
ArgumentParser::MaybeEmpty<std::vector<std::string>> PreArgs;
ArgumentParser::MaybeEmpty<std::vector<std::string>> PostArgs;
};
static auto const parser = cmArgumentParser<Arguments>{}
.Bind("PRE"_s, &Arguments::PreArgs)
.Bind("POST"_s, &Arguments::PostArgs);
Arguments const arguments = parser.Parse(cmMakeRange(args).advance(2),
/*unparsedArguments=*/nullptr);
// Lookup the policy number.
cmPolicies::PolicyID pid;
if (!cmPolicies::GetPolicyID(id.c_str(), pid)) {
status.SetError(
cmStrCat("ISSUE_WARNING given policy \"", id,
"\" which is not known to this version of CMake."));
return false;
}
// Issue the policy warning.
status.GetMakefile().IssuePolicyWarning(pid, cmJoin(arguments.PreArgs, {}),
cmJoin(arguments.PostArgs, {}));
return true;
}
}
@@ -1,10 +1,9 @@
CMake Warning \(author\) at .*/Modules/BundleUtilities\.cmake:[0-9]+ \(message\):
CMake Warning \(policy\) at .*/Modules/BundleUtilities\.cmake:[0-9]+ \(cmake_policy\):
Policy CMP0080 is not set: BundleUtilities cannot be included at configure
time\. Run "cmake --help-policy CMP0080" for policy details\. Use the
cmake_policy command to set the policy and suppress this warning\.
Call Stack \(most recent call first\):
.*/Modules/BundleUtilities\.cmake:[0-9]+ \(_warn_cmp0080\)
CMP0080-WARN\.cmake:[0-9]+ \(include\)
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author to suppress it\.
This warning is for project developers\. Use -Wno-author or -Wno-policy to
suppress it\.
@@ -8,7 +8,7 @@ Call Stack \(most recent call first\):
This warning is for project developers\. Use -Wno-author or -Wno-policy to
suppress it\.
CMake Warning \(author\) at .*/Modules/Documentation\.cmake:[0-9]+ \(message\):
CMake Warning \(policy\) at .*/Modules/Documentation\.cmake:[0-9]+ \(cmake_policy\):
Policy CMP0106 is not set: The Documentation module is removed\. Run "cmake
--help-policy CMP0106" for policy details\. Use the cmake_policy command to
set the policy and suppress this warning\.
@@ -20,9 +20,10 @@ Call Stack \(most recent call first\):
CMP0106-Common\.cmake:1 \(include\)
CMP0106-WARN\.cmake:2 \(include\)
CMakeLists\.txt:7 \(include\)
This warning is for project developers\. Use -Wno-author to suppress it\.
This warning is for project developers\. Use -Wno-author or -Wno-policy to
suppress it\.
CMake Warning \(author\) at .*/Modules/Documentation\.cmake:[0-9]+ \(message\):
CMake Warning \(policy\) at .*/Modules/Documentation\.cmake:[0-9]+ \(cmake_policy\):
Policy CMP0106 is not set: The Documentation module is removed\. Run "cmake
--help-policy CMP0106" for policy details\. Use the cmake_policy command to
set the policy and suppress this warning\.
@@ -34,4 +35,5 @@ Call Stack \(most recent call first\):
CMP0106-Common\.cmake:10 \(include\)
CMP0106-WARN\.cmake:2 \(include\)
CMakeLists\.txt:7 \(include\)
This warning is for project developers\. Use -Wno-author to suppress it\.
This warning is for project developers\. Use -Wno-author or -Wno-policy to
suppress it\.
@@ -1,4 +1,4 @@
CMake Warning \(author\) at .*/Modules/ExternalProject/shared_internal_commands\.cmake:[0-9]+ \(message\):
CMake Warning \(policy\) at .*/Modules/ExternalProject/shared_internal_commands\.cmake:[0-9]+ \(cmake_policy\):
Policy CMP0150 is not set: ExternalProject_Add and FetchContent_Declare
commands treat relative GIT_REPOSITORY paths as being relative to the
parent project's remote\. Run "cmake --help-policy CMP0150" for policy
@@ -11,7 +11,7 @@ CMake Warning \(author\) at .*/Modules/ExternalProject/shared_internal_commands\
Call Stack \(most recent call first\):
.*/Modules/ExternalProject\.cmake:[0-9]+ \(_ep_resolve_git_remote\)
.*
CMake Warning \(author\) at .*/Modules/ExternalProject/shared_internal_commands\.cmake:[0-9]+ \(message\):
CMake Warning \(policy\) at .*/Modules/ExternalProject/shared_internal_commands\.cmake:[0-9]+ \(cmake_policy\):
Policy CMP0150 is not set: ExternalProject_Add and FetchContent_Declare
commands treat relative GIT_REPOSITORY paths as being relative to the
parent project's remote\. Run "cmake --help-policy CMP0150" for policy
@@ -1,5 +1,5 @@
^CMake Warning \(author\) at [^
]*/Modules/CMakeDetermineASMCompiler\.cmake:[0-9]+ \(message\):
^CMake Warning \(policy\) at [^
]*/Modules/CMakeDetermineASMCompiler\.cmake:[0-9]+ \(cmake_policy\):
Policy CMP194 is not set: MSVC is not an assembler for language ASM\. Run
"cmake --help-policy CMP194" for policy details\. Use the cmake_policy
command to set the policy and suppress this warning\.
@@ -7,4 +7,5 @@ Call Stack \(most recent call first\):
CMP0194-common\.cmake:[0-9]+ \(enable_language\)
CMP0194-WARN\.cmake:[0-9]+ \(include\)
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author to suppress it\.$
This warning is for project developers\. Use -Wno-author or -Wno-policy to
suppress it\.$
@@ -1,9 +1,10 @@
^CMake Warning \(author\) at [^
]*/Modules/CMakeDependentOption\.cmake:[0-9]+ \(message\):
^CMake Warning \(policy\) at [^
]*/Modules/CMakeDependentOption\.cmake:[0-9]+ \(cmake_policy\):
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\):
[^
]*/Tests/RunCMake/CMakeDependentOption/Parentheses-CMP0127-WARN\.cmake:[0-9]+ \(cmake_dependent_option\)
This warning is for project developers\. Use -Wno-author to suppress it\.$
This warning is for project developers\. Use -Wno-author or -Wno-policy to
suppress it\.$
@@ -1,5 +1,5 @@
^CMake Warning \(author\) at [^
]*/Modules/CPack\.cmake:[0-9]+ \(message\):
^CMake Warning \(policy\) at [^
]*/Modules/CPack\.cmake:[0-9]+ \(cmake_policy\):
Policy CMP0133 is not set: The CPack module disables SLA by default in the
CPack DragNDrop Generator\. Run "cmake --help-policy CMP0133" for policy
details\. Use the cmake_policy command to set the policy and suppress this
@@ -9,4 +9,5 @@
Generator\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author to suppress it\.$
This warning is for project developers\. Use -Wno-author or -Wno-policy to
suppress it\.$
@@ -1,5 +1,5 @@
^CMake Warning \(author\) at [^
]*/Modules/CPack\.cmake:[0-9]+ \(message\):
^CMake Warning \(policy\) at [^
]*/Modules/CPack\.cmake:[0-9]+ \(cmake_policy\):
Policy CMP0161 is not set: CPACK_PRODUCTBUILD_DOMAINS defaults to true\.
Run "cmake --help-policy CMP0161" for policy details\. Use the cmake_policy
command to set the policy and suppress this warning\.
@@ -9,4 +9,5 @@
NEW will prevent this warning\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author to suppress it\.$
This warning is for project developers\. Use -Wno-author or -Wno-policy to
suppress it\.$
@@ -1,5 +1,5 @@
^CMake Warning \(author\) at [^
]*/Modules/CPack\.cmake:[0-9]+ \(message\):
^CMake Warning \(policy\) at [^
]*/Modules/CPack\.cmake:[0-9]+ \(cmake_policy\):
Policy CMP0172 is not set: The CPack module enables per-machine
installation by default in the CPack WIX Generator\. Run "cmake
--help-policy CMP0172" for policy details\. Use the cmake_policy command to
@@ -9,4 +9,5 @@
default in the CPack WIX Generator\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author to suppress it\.$
This warning is for project developers\. Use -Wno-author or -Wno-policy to
suppress it\.$
@@ -1,5 +1,5 @@
^CMake Warning \(author\) at [^
]*/Modules/CPack\.cmake:[0-9]+ \(message\):
^CMake Warning \(policy\) at [^
]*/Modules/CPack\.cmake:[0-9]+ \(cmake_policy\):
Policy CMP0206 is not set: The CPack Archive Generator defaults to UID 0
and GID 0\. Run "cmake --help-policy CMP0206" for policy details\. Use the
cmake_policy command to set the policy and suppress this warning\.
@@ -7,4 +7,5 @@
For compatibility, CMake will set archive UID/GID to -1/-1\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author to suppress it\.$
This warning is for project developers\. Use -Wno-author or -Wno-policy to
suppress it\.$
@@ -7,15 +7,16 @@ Call Stack \(most recent call first\):
This warning is for project developers\. Use -Wno-author or -Wno-policy to
suppress it\.
+
CMake Warning \(author\) at [^
]*/Modules/Dart\.cmake:[0-9]+ \(message\):
CMake Warning \(policy\) at [^
]*/Modules/Dart\.cmake:[0-9]+ \(cmake_policy\):
Policy CMP0145 is not set: The Dart and FindDart modules are removed\. Run
"cmake --help-policy CMP0145" for policy details\. Use the cmake_policy
command to set the policy and suppress this warning\.
Call Stack \(most recent call first\):
CMP0145-Dart-WARN\.cmake:[0-9]+ \(include\)
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author to suppress it\.
This warning is for project developers\. Use -Wno-author or -Wno-policy to
suppress it\.
+
CMake Warning \(deprecated\) at [^
]*/Modules/Dart\.cmake:[0-9]+ \(cmake_policy\):
+12 -9
View File
@@ -1,5 +1,5 @@
^CMake Warning \(author\) at [^
]*/Modules/CheckIncludeFile\.cmake:[0-9]+ \(message\):
^CMake Warning \(policy\) at [^
]*/Modules/CheckIncludeFile\.cmake:[0-9]+ \(cmake_policy\):
Policy CMP0075 is not set: Include file check macros honor
CMAKE_REQUIRED_LIBRARIES\. Run "cmake --help-policy CMP0075" for policy
details\. Use the cmake_policy command to set the policy and suppress this
@@ -13,10 +13,11 @@
Call Stack \(most recent call first\):
CMP0075\.cmake:11 \(check_include_file\)
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author to suppress it\.
This warning is for project developers\. Use -Wno-author or -Wno-policy to
suppress it\.
+
CMake Warning \(author\) at [^
]*/Modules/CheckIncludeFileCXX\.cmake:[0-9]+ \(message\):
CMake Warning \(policy\) at [^
]*/Modules/CheckIncludeFileCXX\.cmake:[0-9]+ \(cmake_policy\):
Policy CMP0075 is not set: Include file check macros honor
CMAKE_REQUIRED_LIBRARIES\. Run "cmake --help-policy CMP0075" for policy
details\. Use the cmake_policy command to set the policy and suppress this
@@ -30,10 +31,11 @@ CMake Warning \(author\) at [^
Call Stack \(most recent call first\):
CMP0075\.cmake:26 \(check_include_file_cxx\)
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author to suppress it\.
This warning is for project developers\. Use -Wno-author or -Wno-policy to
suppress it\.
+
CMake Warning \(author\) at [^
]*/Modules/CheckIncludeFiles\.cmake:[0-9]+ \(message\):
CMake Warning \(policy\) at [^
]*/Modules/CheckIncludeFiles\.cmake:[0-9]+ \(cmake_policy\):
Policy CMP0075 is not set: Include file check macros honor
CMAKE_REQUIRED_LIBRARIES\. Run "cmake --help-policy CMP0075" for policy
details\. Use the cmake_policy command to set the policy and suppress this
@@ -47,7 +49,8 @@ CMake Warning \(author\) at [^
Call Stack \(most recent call first\):
CMP0075\.cmake:41 \(check_include_files\)
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author to suppress it\.
This warning is for project developers\. Use -Wno-author or -Wno-policy to
suppress it\.
+
CMake Warning \(deprecated\) at CMP0075\.cmake:[0-9]+ \(cmake_policy\):
The OLD behavior for policy CMP0075 will be removed from a future version
@@ -1,5 +1,5 @@
^CMake Warning \(author\) at [^
]*/Modules/ExternalProject\.cmake:[0-9]+ \(message\):
^CMake Warning \(policy\) at [^
]*/Modules/ExternalProject\.cmake:[0-9]+ \(cmake_policy\):
Policy CMP0114 is not set: ExternalProject step targets fully adopt their
steps\. Run "cmake --help-policy CMP0114" for policy details\. Use the
cmake_policy command to set the policy and suppress this warning\.
@@ -17,7 +17,8 @@ Call Stack \(most recent call first\):
NO_DEPENDS-CMP0114-Common\.cmake:[0-9]+ \(ExternalProject_Add\)
NO_DEPENDS-CMP0114-WARN\.cmake:[0-9]+ \(include\)
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author to suppress it\.
This warning is for project developers\. Use -Wno-author or -Wno-policy to
suppress it\.
+
CMake Warning \(author\) at [^
]*/Modules/ExternalProject\.cmake:[0-9]+ \(message\):
@@ -53,8 +54,8 @@ Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author to suppress it\.
+
CMake Warning \(author\) at [^
]*/Modules/ExternalProject\.cmake:[0-9]+ \(message\):
CMake Warning \(policy\) at [^
]*/Modules/ExternalProject\.cmake:[0-9]+ \(cmake_policy\):
Policy CMP0114 is not set: ExternalProject step targets fully adopt their
steps\. Run "cmake --help-policy CMP0114" for policy details\. Use the
cmake_policy command to set the policy and suppress this warning\.
@@ -72,7 +73,8 @@ Call Stack \(most recent call first\):
NO_DEPENDS-CMP0114-Common\.cmake:[0-9]+ \(ExternalProject_Add\)
NO_DEPENDS-CMP0114-WARN\.cmake:[0-9]+ \(include\)
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author to suppress it\.
This warning is for project developers\. Use -Wno-author or -Wno-policy to
suppress it\.
+
CMake Warning \(author\) at [^
]*/Modules/ExternalProject\.cmake:[0-9]+ \(message\):
@@ -91,8 +93,8 @@ Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author to suppress it\.
+
CMake Warning \(author\) at [^
]*/Modules/ExternalProject\.cmake:[0-9]+ \(message\):
CMake Warning \(policy\) at [^
]*/Modules/ExternalProject\.cmake:[0-9]+ \(cmake_policy\):
Policy CMP0114 is not set: ExternalProject step targets fully adopt their
steps\. Run "cmake --help-policy CMP0114" for policy details\. Use the
cmake_policy command to set the policy and suppress this warning\.
@@ -105,7 +107,8 @@ Call Stack \(most recent call first\):
NO_DEPENDS-CMP0114-Common\.cmake:[0-9]+ \(ExternalProject_Add_StepTargets\)
NO_DEPENDS-CMP0114-WARN\.cmake:[0-9]+ \(include\)
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author to suppress it\.
This warning is for project developers\. Use -Wno-author or -Wno-policy to
suppress it\.
+
CMake Warning \(author\) at [^
]*/Modules/ExternalProject\.cmake:[0-9]+ \(message\):
@@ -1,9 +1,10 @@
^CMake Warning \(author\) at [^
]*/Modules/FeatureSummary\.cmake:[0-9]+ \(message\):
^CMake Warning \(policy\) at [^
]*/Modules/FeatureSummary\.cmake:[0-9]+ \(cmake_policy\):
Policy CMP0183 is not set: add_feature_info\(\) supports full Condition
Syntax\. Run "cmake --help-policy CMP0183" for policy details\. Use the
cmake_policy command to set the policy and suppress this warning\.
Call Stack \(most recent call first\):
FeatureSummaryParentheses-CMP0183-WARN\.cmake:[0-9]+ \(add_feature_info\)
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author to suppress it\.$
This warning is for project developers\. Use -Wno-author or -Wno-policy to
suppress it\.$
@@ -1,4 +1,4 @@
^CMake Warning \(author\) at .*/Modules/FindOpenGL\.cmake:[0-9]+ \(message\):
^CMake Warning \(policy\) at .*/Modules/FindOpenGL\.cmake:[0-9]+ \(cmake_policy\):
Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
available\. Run "cmake --help-policy CMP0072" for policy details\. Use the
cmake_policy command to set the policy and suppress this warning\.
@@ -18,4 +18,5 @@ Call Stack \(most recent call first\):
CMP0072-common\.cmake:[0-9]+ \(find_package\)
CMP0072-WARN\.cmake:[0-9]+ \(include\)
CMakeLists\.txt:[0-9]+ \(include\)
This warning is for project developers\. Use -Wno-author to suppress it\.$
This warning is for project developers\. Use -Wno-author or -Wno-policy to
suppress it\.$
@@ -1,5 +1,5 @@
CMake Warning \(author\) at [^
]*/Modules/GoogleTest\.cmake:[0-9]+ \(message\):
CMake Warning \(policy\) at [^
]*/Modules/GoogleTest\.cmake:[0-9]+ \(cmake_policy\):
The 'launcher_test' target's TEST_LAUNCHER or CROSSCOMPILING_EMULATOR test
properties contain one or more empty values\. Those empty values are being
silently discarded to preserve backward compatibility\.
@@ -11,10 +11,11 @@ Call Stack \(most recent call first\):
Launcher\.cmake:[0-9]+ \(gtest_discover_tests\)
Launcher-CMP0178-WARN\.cmake:1 \(include\)
CMakeLists\.txt:3 \(include\)
This warning is for project developers\. Use -Wno-author to suppress it\.
This warning is for project developers\. Use -Wno-author or -Wno-policy to
suppress it\.
CMake Warning \(author\) at [^
]*/Modules/GoogleTest\.cmake:[0-9]+ \(message\):
CMake Warning \(policy\) at [^
]*/Modules/GoogleTest\.cmake:[0-9]+ \(cmake_policy\):
The EXTRA_ARGS value contains one or more empty values\. Those empty values
are being silently discarded to preserve backward compatibility\.
@@ -25,7 +26,8 @@ Call Stack \(most recent call first\):
Launcher\.cmake:[0-9]+ \(gtest_discover_tests\)
Launcher-CMP0178-WARN\.cmake:1 \(include\)
CMakeLists\.txt:3 \(include\)
This warning is for project developers\. Use -Wno-author to suppress it\.
This warning is for project developers\. Use -Wno-author or -Wno-policy to
suppress it\.
CMake Warning \(policy\) in CMakeLists\.txt:
The TEST_LAUNCHER property of target 'launcher_test' contains empty list
@@ -1,10 +1,10 @@
CMake Warning \(author\) at .*/Modules/UseSWIG\.cmake:[0-9]+ \(message\):
CMake Warning \(policy\) at .*/Modules/UseSWIG\.cmake:[0-9]+ \(cmake_policy\):
Policy CMP0078 is not set: UseSWIG generates standard target names\. Run
"cmake --help-policy CMP0078" for policy details\. Use the cmake_policy
command to set the policy and suppress this warning\.
Call Stack \(most recent call first\):
CMP0078-common\.cmake:8 \(swig_add_library\)
CMP0078-WARN\.cmake:1 \(include\)
CMakeLists\.txt:3 \(include\)
This warning is for project developers\. Use -Wno-author to suppress it\.$
This warning is for project developers\. Use -Wno-author or -Wno-policy to
suppress it\.$
@@ -1,11 +1,11 @@
CMake Warning \(author\) at .*/Modules/UseSWIG\.cmake:[0-9]+ \(message\):
CMake Warning \(policy\) at .*/Modules/UseSWIG\.cmake:[0-9]+ \(cmake_policy\):
Policy CMP0086 is not set: UseSWIG honors SWIG_MODULE_NAME via -module
flag\. Run "cmake --help-policy CMP0086" for policy details\. Use the
cmake_policy command to set the policy and suppress this warning\.
Call Stack \(most recent call first\):
.*/Modules/UseSWIG\.cmake:[0-9]+ \(SWIG_ADD_SOURCE_TO_MODULE\)
CMP0086-common\.cmake:[0-9]+ \(swig_add_library\)
CMP0086-WARN\.cmake:1 \(include\)
CMakeLists\.txt:3 \(include\)
This warning is for project developers\. Use -Wno-author to suppress it\.$
This warning is for project developers\. Use -Wno-author or -Wno-policy to
suppress it\.$
@@ -1,10 +1,10 @@
CMake Warning \(author\) at .*/Modules/UseSWIG\.cmake:[0-9]+ \(message\):
CMake Warning \(policy\) at .*/Modules/UseSWIG\.cmake:[0-9]+ \(cmake_policy\):
Policy CMP0122 is not set: UseSWIG use standard library name conventions
for csharp language\. Run "cmake --help-policy CMP0122" for policy details\.
Use the cmake_policy command to set the policy and suppress this warning\.
Call Stack \(most recent call first\):
CMP0122-common\.cmake:9 \(swig_add_library\)
CMP0122-WARN\.cmake:1 \(include\)
CMakeLists\.txt:3 \(include\)
This warning is for project developers\. Use -Wno-author to suppress it\.$
This warning is for project developers\. Use -Wno-author or -Wno-policy to
suppress it\.$