Warning, /acts/cmake/ActsGenerateNonCompileTest.cmake is written in an unsupported language. File is not indexed.
0001 # message(STATUS "${INPUT_FILE} -> ${OUTPUT_FILE}")
0002
0003 file(READ ${INPUT_FILE} content)
0004
0005 string(
0006 REGEX REPLACE
0007 "ACTS_DOES_NOT_COMPILE_BEGIN\\(([A-Za-z0-9]+)\\)"
0008 "#if defined(\\1)"
0009 processed
0010 "${content}"
0011 )
0012 string(REPLACE "ACTS_DOES_NOT_COMPILE_END()" "#endif" processed "${processed}")
0013
0014 file(WRITE ${OUTPUT_FILE} "${processed}")