Files
cmake/Tests/RunCMake/CMP0150/CMP0150-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

26 lines
1.5 KiB
Plaintext

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
details\. Use the cmake_policy command to set the policy and suppress this
warning\.
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 this warning\.
Call Stack \(most recent call first\):
.*/Modules/ExternalProject\.cmake:[0-9]+ \(_ep_resolve_git_remote\)
.*
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
details\. Use the cmake_policy command to set the policy and suppress this
warning\.
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 this warning\.
Call Stack \(most recent call first\):
.*/Modules/FetchContent\.cmake:[0-9]+ \(_ep_resolve_git_remote\)