Files
cmake/Tests/RunCMake/ExternalProject/NO_DEPENDS-CMP0114-WARN-stderr.txt
Matthew Woehlke 763cfbcac8 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.
2026-05-20 15:32:57 -04:00

123 lines
5.2 KiB
Plaintext

^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\.
ExternalProject 'FOO' option INDEPENDENT_STEP_TARGETS is set to
download;patch;update;configure;build
but the option is deprecated in favor of policy CMP0114\.
Call Stack \(most recent call first\):
[^
]*/Modules/ExternalProject\.cmake:[0-9]+ \(ExternalProject_Add_Step\)
[^
]*/Modules/ExternalProject\.cmake:[0-9]+ \(_ep_add_mkdir_command\)
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 or -Wno-policy to
suppress it\.
+
CMake Warning \(author\) at [^
]*/Modules/ExternalProject\.cmake:[0-9]+ \(message\):
Using NO_DEPENDS for "configure" step might break parallel builds
Call Stack \(most recent call first\):
[^
]*/Modules/ExternalProject\.cmake:[0-9]+ \(_ep_step_add_target\)
[^
]*/Modules/ExternalProject\.cmake:[0-9]+:EVAL:2 \(ExternalProject_Add_Step\)
[^
]*/Modules/ExternalProject\.cmake:[0-9]+ \(cmake_language\)
[^
]*/Modules/ExternalProject\.cmake:[0-9]+ \(_ep_add_configure_command\)
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\.
+
CMake Warning \(author\) at [^
]*/Modules/ExternalProject\.cmake:[0-9]+ \(message\):
Using NO_DEPENDS for "build" step might break parallel builds
Call Stack \(most recent call first\):
[^
]*/Modules/ExternalProject\.cmake:[0-9]+ \(_ep_step_add_target\)
[^
]*/Modules/ExternalProject\.cmake:[0-9]+:EVAL:2 \(ExternalProject_Add_Step\)
[^
]*/Modules/ExternalProject\.cmake:[0-9]+ \(cmake_language\)
[^
]*/Modules/ExternalProject\.cmake:[0-9]+ \(_ep_add_build_command\)
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\.
+
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\.
ExternalProject 'BAR' option INDEPENDENT_STEP_TARGETS is set to
install
but the option is deprecated in favor of policy CMP0114\.
Call Stack \(most recent call first\):
[^
]*/Modules/ExternalProject\.cmake:[0-9]+ \(ExternalProject_Add_Step\)
[^
]*/Modules/ExternalProject\.cmake:[0-9]+ \(_ep_add_mkdir_command\)
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 or -Wno-policy to
suppress it\.
+
CMake Warning \(author\) at [^
]*/Modules/ExternalProject\.cmake:[0-9]+ \(message\):
Using NO_DEPENDS for "install" step might break parallel builds
Call Stack \(most recent call first\):
[^
]*/Modules/ExternalProject\.cmake:[0-9]+ \(_ep_step_add_target\)
[^
]*/Modules/ExternalProject\.cmake:[0-9]+:EVAL:2 \(ExternalProject_Add_Step\)
[^
]*/Modules/ExternalProject\.cmake:[0-9]+ \(cmake_language\)
[^
]*/Modules/ExternalProject\.cmake:[0-9]+ \(_ep_add_install_command\)
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\.
+
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\.
ExternalProject target 'BAR' would depend on the targets for step\(s\)
'test;bar' under policy CMP0114, but this is being left out for
compatibility since the policy is not set\. Also, the NO_DEPENDS option is
deprecated in favor of policy CMP0114\.
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 or -Wno-policy to
suppress it\.
+
CMake Warning \(author\) at [^
]*/Modules/ExternalProject\.cmake:[0-9]+ \(message\):
Using NO_DEPENDS for "test" step might break parallel builds
Call Stack \(most recent call first\):
[^
]*/Modules/ExternalProject\.cmake:[0-9]+ \(_ep_step_add_target\)
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\.$