mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Preserve backslashes in arguments passed to macros by re-escaping them before substituting in the macro body, where they will be parsed again. Fixes: #19281, #22157, #23641, #25803, #27645, #20891
21 lines
743 B
Plaintext
21 lines
743 B
Plaintext
CMake Warning \(policy\) at .*/Warn-Unset-VariableWatch\.cmake:[0-9]+ \(set\):
|
|
Policy CMP0219 is not set: Macro invocations preserve backslashes in
|
|
arguments\. Run "cmake --help-policy CMP0219" for policy details\. Use the
|
|
cmake_policy command to set the policy and suppress this warning\.
|
|
|
|
Command "cmp0219_warn_watch" called with arguments containing backslashes\.
|
|
|
|
Since the policy is not set, backslashes in the arguments:
|
|
|
|
"prefix\\tsuffix"
|
|
|
|
will be interpreted as escape sequences for compatibility\.
|
|
|
|
Set the policy to NEW to instead pass
|
|
|
|
"prefix\\\\tsuffix"
|
|
|
|
so that argument parsing will preserve the original values\.
|
|
This warning is for project developers\. Use -Wno-author or -Wno-policy to
|
|
suppress it\.
|