diff options
author | Brad King <brad.king@kitware.com> | 2003-10-15 02:30:07 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-10-15 02:30:07 (GMT) |
commit | b0e79efddd7d31d3a83464dad5a61b5ce1d8db75 (patch) | |
tree | 0311807e0fc07ec7a1231b8becc0884b175abd22 /Modules | |
parent | 97dd683836337c6f9c3a488ec6f42dfba28d750e (diff) | |
download | CMake-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.cmake | 2 |
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) |