mirror of
https://github.com/reactos/CMake.git
synced 2025-01-07 11:40:23 +00:00
a9bdef2dda
There are some corner cases in variable expansion which would be nice to capture before going and rewriting the variable expansion code. The majority of these are related to configuring files and strings with '@' in them in conjunction with @ONLY being specified. Another is testing for '(' usage inside of ENV variable references based on whether it is quoted or not.
10 lines
204 B
CMake
10 lines
204 B
CMake
set(var "\"")
|
|
set(ref "@var@")
|
|
set(rref "\${var}")
|
|
|
|
string(CONFIGURE "${ref}" output ESCAPE_QUOTES)
|
|
message("-->${output}<--")
|
|
|
|
string(CONFIGURE "${rref}" output ESCAPE_QUOTES)
|
|
message("-->${output}<--")
|