mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 02:39:48 -06:00
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
241 B
CMake
10 lines
241 B
CMake
set(right "wrong")
|
|
set(var "\${right}")
|
|
|
|
configure_file(
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/atfile.txt.in"
|
|
"${CMAKE_CURRENT_BINARY_DIR}/atfile.txt"
|
|
@ONLY)
|
|
file(READ "${CMAKE_CURRENT_BINARY_DIR}/atfile.txt" output)
|
|
message("-->${output}<--")
|