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
314 B
CMake
10 lines
314 B
CMake
cmake_policy(SET CMP0219 NEW)
|
|
include("${CMAKE_CURRENT_LIST_DIR}/CMP0219-helpers.cmake")
|
|
|
|
macro(cmp0219_dispatch)
|
|
set(cmp0219_dispatch_argn "${ARGN}")
|
|
endmacro()
|
|
|
|
cmake_language(CALL cmp0219_dispatch HINTS "${cmp0219_path_native}")
|
|
cmp0219_assert_equal("${cmp0219_dispatch_argn}" "HINTS;${cmp0219_path_native}")
|