diff options
author | Brad King <brad.king@kitware.com> | 2006-06-28 21:00:31 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-06-28 21:00:31 (GMT) |
commit | ba539d9605e04ab01bab207d5df79ef985736ced (patch) | |
tree | 21c33ea9941a5bbb6ff89487d7612a9a1183ee1e /Utilities/cmxmlrpc | |
parent | 4bdc78339b8f7564d468c29b46af7dbd7195876e (diff) | |
download | CMake-ba539d9605e04ab01bab207d5df79ef985736ced.zip CMake-ba539d9605e04ab01bab207d5df79ef985736ced.tar.gz CMake-ba539d9605e04ab01bab207d5df79ef985736ced.tar.bz2 |
BUG: Make sure try-compile source ends in a newline.
Diffstat (limited to 'Utilities/cmxmlrpc')
-rw-r--r-- | Utilities/cmxmlrpc/CMake/TryCompileFromSource.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/cmxmlrpc/CMake/TryCompileFromSource.cmake b/Utilities/cmxmlrpc/CMake/TryCompileFromSource.cmake index ee06a97..b3367c8 100644 --- a/Utilities/cmxmlrpc/CMake/TryCompileFromSource.cmake +++ b/Utilities/cmxmlrpc/CMake/TryCompileFromSource.cmake @@ -16,7 +16,7 @@ MACRO(TRY_COMPILE_FROM_SOURCE SOURCE VAR) SET(src "${src}\nint main() { ${SOURCE} ; return 0; }") FILE(WRITE "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/src2.c" - "${src}") + "${src}\n") EXEC_PROGRAM("${CMAKE_COMMAND}" "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp" ARGS -E copy src2.c src.c) |