mirror of
https://github.com/Kitware/CMake.git
synced 2026-11-06 05:16:58 +00: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
125 B
CMake
10 lines
125 B
CMake
macro (escape str)
|
|
message("${str}")
|
|
endmacro ()
|
|
|
|
if(POLICY CMP0219)
|
|
cmake_policy(SET CMP0219 OLD)
|
|
endif()
|
|
|
|
escape("\\")
|