Files
cmake/Tests/RunCMake/CMP0219/Warn-Unset-VariableWatch-stderr.txt
T
Alex Reinking 9d2e85373a macro: Add policy to preserve backslashes in arguments
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
2026-05-31 14:36:15 -04:00

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\.