diff options
author | Brad King <brad.king@kitware.com> | 2003-10-17 20:09:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-10-17 20:09:18 (GMT) |
commit | 9a4c654d239f36c6187262ea708d75f054ea49da (patch) | |
tree | df40be566eefc915e191f7b7be612f5857050291 /Modules/CMakeDetermineCXXCompiler.cmake | |
parent | 545ae439b7f388947ca59812deea9d8afa5ce951 (diff) | |
download | CMake-9a4c654d239f36c6187262ea708d75f054ea49da.zip CMake-9a4c654d239f36c6187262ea708d75f054ea49da.tar.gz CMake-9a4c654d239f36c6187262ea708d75f054ea49da.tar.bz2 |
BUG: Fixed same spaces-in-paths problem for CMakeTestGNU.c as in CMakeDetermineCCompiler.cmake.
Diffstat (limited to 'Modules/CMakeDetermineCXXCompiler.cmake')
-rw-r--r-- | Modules/CMakeDetermineCXXCompiler.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCXXCompiler.cmake b/Modules/CMakeDetermineCXXCompiler.cmake index f5e3c60..4c94184 100644 --- a/Modules/CMakeDetermineCXXCompiler.cmake +++ b/Modules/CMakeDetermineCXXCompiler.cmake @@ -40,7 +40,7 @@ MARK_AS_ADVANCED(CMAKE_CXX_COMPILER) # test to see if the cxx compiler is gnu -EXEC_PROGRAM(${CMAKE_CXX_COMPILER} ARGS -E ${CMAKE_ROOT}/Modules/CMakeTestGNU.c OUTPUT_VARIABLE CMAKE_COMPILER_OUTPUT RETURN_VALUE CMAKE_COMPILER_RETURN) +EXEC_PROGRAM(${CMAKE_CXX_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_GNUCXX 1) |