summaryrefslogtreecommitdiffstats
path: root/Modules/CheckCSourceCompiles.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-06-28 21:00:31 (GMT)
committerBrad King <brad.king@kitware.com>2006-06-28 21:00:31 (GMT)
commitba539d9605e04ab01bab207d5df79ef985736ced (patch)
tree21c33ea9941a5bbb6ff89487d7612a9a1183ee1e /Modules/CheckCSourceCompiles.cmake
parent4bdc78339b8f7564d468c29b46af7dbd7195876e (diff)
downloadCMake-ba539d9605e04ab01bab207d5df79ef985736ced.zip
CMake-ba539d9605e04ab01bab207d5df79ef985736ced.tar.gz
CMake-ba539d9605e04ab01bab207d5df79ef985736ced.tar.bz2
BUG: Make sure try-compile source ends in a newline.
Diffstat (limited to 'Modules/CheckCSourceCompiles.cmake')
-rw-r--r--Modules/CheckCSourceCompiles.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CheckCSourceCompiles.cmake b/Modules/CheckCSourceCompiles.cmake
index 62e26b4..767b2af 100644
--- a/Modules/CheckCSourceCompiles.cmake
+++ b/Modules/CheckCSourceCompiles.cmake
@@ -29,7 +29,7 @@ MACRO(CHECK_C_SOURCE_COMPILES SOURCE VAR)
SET(CHECK_C_SOURCE_COMPILES_ADD_INCLUDES)
ENDIF(CMAKE_REQUIRED_INCLUDES)
FILE(WRITE "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/src.c"
- "${SOURCE}")
+ "${SOURCE}\n")
MESSAGE(STATUS "Performing Test ${VAR}")
TRY_COMPILE(${VAR}