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
10 lines
274 B
CMake
10 lines
274 B
CMake
set(cmp0219_warn_value1 "prefix\\tsuffix")
|
|
set(cmp0219_warn_value2 "left\\;right")
|
|
|
|
macro(cmp0219_warn_macro arg1 arg2)
|
|
set(cmp0219_warn_seen1 "${arg1}")
|
|
set(cmp0219_warn_seen2 "${arg2}")
|
|
endmacro()
|
|
|
|
cmp0219_warn_macro("${cmp0219_warn_value1}" "${cmp0219_warn_value2}")
|