Files
cmake/Tests/RunCMake/CMP0219/VariableWatch-OLD.cmake
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

10 lines
336 B
CMake

cmake_policy(SET CMP0219 OLD)
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}")