You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
320 B
13 lines
320 B
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()
|