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
12 lines
409 B
CMake
12 lines
409 B
CMake
cmake_policy(SET CMP0219 NEW)
|
|
include("${CMAKE_CURRENT_LIST_DIR}/CMP0219-helpers.cmake")
|
|
|
|
function(cmp0219_watch_callback variable access value current_list_file stack)
|
|
set(cmp0219_watch_value "${value}" PARENT_SCOPE)
|
|
endfunction()
|
|
|
|
variable_watch(cmp0219_watched cmp0219_watch_callback)
|
|
set(cmp0219_watched "${cmp0219_path_native}")
|
|
|
|
cmp0219_assert_equal("${cmp0219_watch_value}" "${cmp0219_path_native}")
|