summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Syntax/AtWithVariableAtOnlyFile.cmake
blob: bdd7bcd25237ddd22e5a077aab4203ee1c5d013d (plain)
1
2
3
4
5
6
7
8
9
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}<--")