mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
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.
26 lines
1.5 KiB
Plaintext
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\)
|