Prevent CMake from putting ; in the file
This commit is contained in:
parent
e727d34b48
commit
4a2d04f42a
|
@ -20,8 +20,7 @@ MACRO(CHECK_SYMBOL_EXISTS SYMBOL FILES VARIABLE)
|
||||||
"${CHECK_SYMBOL_EXISTS_CONTENT}${POUND}include <${FILE}>\n")
|
"${CHECK_SYMBOL_EXISTS_CONTENT}${POUND}include <${FILE}>\n")
|
||||||
ENDFOREACH(FILE)
|
ENDFOREACH(FILE)
|
||||||
SET(CHECK_SYMBOL_EXISTS_CONTENT
|
SET(CHECK_SYMBOL_EXISTS_CONTENT
|
||||||
"${CHECK_SYMBOL_EXISTS_CONTENT}\n\nint main${PARENTS}{"
|
"${CHECK_SYMBOL_EXISTS_CONTENT}\n\nint main${PARENTS}{\n${POUND}ifndef ${SYMBOL}\nchar ${OPEN_PARENT}*f${CLOSE_PARENT} ${PARENTS} = ${SYMBOL};\n${POUND}endif\nreturn 0;\n}\n")
|
||||||
"\n${POUND}ifndef ${SYMBOL}\nchar ${OPEN_PARENT}*f${CLOSE_PARENT} ${PARENTS} = ${SYMBOL};\n${POUND}endif\nreturn 0;\n}\n")
|
|
||||||
WRITE_FILE(${CMAKE_BINARY_DIR}/CMakeTmp/CheckSymbolExists.c
|
WRITE_FILE(${CMAKE_BINARY_DIR}/CMakeTmp/CheckSymbolExists.c
|
||||||
"${CHECK_SYMBOL_EXISTS_CONTENT}")
|
"${CHECK_SYMBOL_EXISTS_CONTENT}")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue