summaryrefslogtreecommitdiff
path: root/Modules/CheckCXXSourceCompiles.cmake
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-01-24 12:07:45 -0500
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-01-24 12:07:45 -0500
commitf95310c3a94b520e8138a6d61178a5ac46b0564e (patch)
tree1dc50a508353b7ff2ecd9c8f216e4b9e29659ce5 /Modules/CheckCXXSourceCompiles.cmake
parenta2c17773006e44dbfd3c4e95484e7192e7b285d4 (diff)
downloadcmake-f95310c3a94b520e8138a6d61178a5ac46b0564e.tar.gz
ENH: fix bug, write the correct file
Diffstat (limited to 'Modules/CheckCXXSourceCompiles.cmake')
-rw-r--r--Modules/CheckCXXSourceCompiles.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CheckCXXSourceCompiles.cmake b/Modules/CheckCXXSourceCompiles.cmake
index 9c59050584..871208e376 100644
--- a/Modules/CheckCXXSourceCompiles.cmake
+++ b/Modules/CheckCXXSourceCompiles.cmake
@@ -20,7 +20,7 @@ MACRO(CHECK_CXX_SOURCE_COMPILES SOURCE VAR)
SET(CHECK_CXX_SOURCE_COMPILES_ADD_INCLUDES
"-DINCLUDE_DIRECTORIES:STRING=${CMAKE_REQUIRED_INCLUDES}")
ENDIF(CMAKE_REQUIRED_INCLUDES)
- FILE(WRITE "${CMAKE_BINARY_DIR}/CMakeFiles/CMakeTmp/src.c"
+ FILE(WRITE "${CMAKE_BINARY_DIR}/CMakeFiles/CMakeTmp/src.cxx"
"${SOURCE}")
MESSAGE(STATUS "Performing Test ${VAR}")