summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-10-15 02:30:07 (GMT)
committerBrad King <brad.king@kitware.com>2003-10-15 02:30:07 (GMT)
commitb0e79efddd7d31d3a83464dad5a61b5ce1d8db75 (patch)
tree0311807e0fc07ec7a1231b8becc0884b175abd22 /Modules
parent97dd683836337c6f9c3a488ec6f42dfba28d750e (diff)
downloadCMake-b0e79efddd7d31d3a83464dad5a61b5ce1d8db75.zip
CMake-b0e79efddd7d31d3a83464dad5a61b5ce1d8db75.tar.gz
CMake-b0e79efddd7d31d3a83464dad5a61b5ce1d8db75.tar.bz2
BUG: Fix for spaces in path when loading CMakeTestGNU.c.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakeDetermineCCompiler.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCCompiler.cmake b/Modules/CMakeDetermineCCompiler.cmake
index 9c61efe..573dd73 100644
--- a/Modules/CMakeDetermineCCompiler.cmake
+++ b/Modules/CMakeDetermineCCompiler.cmake
@@ -47,7 +47,7 @@ ENDIF(NOT CMAKE_RANLIB)
MARK_AS_ADVANCED(CMAKE_RANLIB)
# test to see if the c compiler is gnu
-EXEC_PROGRAM(${CMAKE_C_COMPILER} ARGS -E ${CMAKE_ROOT}/Modules/CMakeTestGNU.c OUTPUT_VARIABLE CMAKE_COMPILER_OUTPUT RETURN_VALUE CMAKE_COMPILER_RETURN)
+EXEC_PROGRAM(${CMAKE_C_COMPILER} ARGS -E "\"${CMAKE_ROOT}/Modules/CMakeTestGNU.c\"" OUTPUT_VARIABLE CMAKE_COMPILER_OUTPUT RETURN_VALUE CMAKE_COMPILER_RETURN)
IF(NOT CMAKE_COMPILER_RETURN)
IF("${CMAKE_COMPILER_OUTPUT}" MATCHES ".*THIS_IS_GNU.*" )
SET(CMAKE_COMPILER_IS_GNUCC 1)