diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-02-17 15:30:13 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-02-17 15:30:13 (GMT) |
commit | 9ca8035fc69419daecf46723f742a618245c2309 (patch) | |
tree | 02601b45a8a3f0504815c1970425656709b5c7c4 /Modules/CheckSymbolExists.cmake | |
parent | 852ad56a6ca95cc1de5380a2206241c45f60183a (diff) | |
download | CMake-9ca8035fc69419daecf46723f742a618245c2309.zip CMake-9ca8035fc69419daecf46723f742a618245c2309.tar.gz CMake-9ca8035fc69419daecf46723f742a618245c2309.tar.bz2 |
Fix return value problem
Diffstat (limited to 'Modules/CheckSymbolExists.cmake')
-rw-r--r-- | Modules/CheckSymbolExists.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CheckSymbolExists.cmake b/Modules/CheckSymbolExists.cmake index 5f62738..e281fbd 100644 --- a/Modules/CheckSymbolExists.cmake +++ b/Modules/CheckSymbolExists.cmake @@ -20,7 +20,7 @@ MACRO(CHECK_SYMBOL_EXISTS SYMBOL FILES VARIABLE) "${CHECK_SYMBOL_EXISTS_CONTENT}${POUND}include <${FILE}>\n") ENDFOREACH(FILE) SET(CHECK_SYMBOL_EXISTS_CONTENT - "${CHECK_SYMBOL_EXISTS_CONTENT}\n\nvoid 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") WRITE_FILE(${CMAKE_BINARY_DIR}/CMakeTmp/CheckSymbolExists.c "${CHECK_SYMBOL_EXISTS_CONTENT}") |