From 596f28e6e27ebe5c3eb1c9e50f90a905abbca9f1 Mon Sep 17 00:00:00 2001 From: Adam Strzelecki Date: Mon, 2 Mar 2015 21:20:48 +0100 Subject: [PATCH] Workaround backslash escaping in variable_watch Just access value with ${${variable}} instead ${value}. --- CMakePCHCompiler.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakePCHCompiler.cmake b/CMakePCHCompiler.cmake index 5220de1..c5a1e0a 100644 --- a/CMakePCHCompiler.cmake +++ b/CMakePCHCompiler.cmake @@ -191,7 +191,7 @@ endmacro() macro(__watch_pch_variable variable access value) string(REPLACE _C_ _CPCH_ pchvariable ${variable}) string(REPLACE _CXX_ _CXXPCH_ pchvariable ${pchvariable}) - set(${pchvariable} ${value}) + set(${pchvariable} ${${variable}}) # because ${value} expands backslashes endmacro() macro(__configure_pch_compiler lang)