Skip to content

Commit

Permalink
Workaround backslash escaping in variable_watch
Browse files Browse the repository at this point in the history
Just access value with ${${variable}} instead ${value}.
  • Loading branch information
nanoant committed Mar 2, 2015
1 parent 9c6e030 commit 596f28e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakePCHCompiler.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 596f28e

Please sign in to comment.