blob: 1136c873f44939ff2407e0266ea5d35a4b1d6452 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
set(file_name ${CMAKE_CURRENT_BINARY_DIR}/escape_quotes.txt)
set(var "\t")
set(ref "${var}")
file(CONFIGURE
CONTENT "-->@ref@<--"
OUTPUT ${file_name}
ESCAPE_QUOTES
)
file(READ ${file_name} file_content)
if(NOT file_content MATCHES "^-->\t<--$")
message(FATAL_ERROR "ESCAPE_QUOTES doesn't work")
endif()
|