diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2004-01-13 14:00:59 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2004-01-13 14:00:59 (GMT) |
commit | f0f9b5077022ecfb855eadaeab219b0e6d1c97be (patch) | |
tree | 0076388758fb5e8238559c1fd276a1b2d7b42981 /Modules/CMakeDetermineCCompiler.cmake | |
parent | a9beaa40e8b8e95288dc8df5204d62fa45a277c6 (diff) | |
download | CMake-f0f9b5077022ecfb855eadaeab219b0e6d1c97be.zip CMake-f0f9b5077022ecfb855eadaeab219b0e6d1c97be.tar.gz CMake-f0f9b5077022ecfb855eadaeab219b0e6d1c97be.tar.bz2 |
BUG: use the flags when testing for type of gnu compiler
Diffstat (limited to 'Modules/CMakeDetermineCCompiler.cmake')
-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 e8cc39e..4a209fd 100644 --- a/Modules/CMakeDetermineCCompiler.cmake +++ b/Modules/CMakeDetermineCCompiler.cmake @@ -48,7 +48,7 @@ MARK_AS_ADVANCED(CMAKE_RANLIB) IF(NOT CMAKE_COMPILER_IS_GNUCC_RUN) # 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 ${CMAKE_C_FLAGS} -E "\"${CMAKE_ROOT}/Modules/CMakeTestGNU.c\"" OUTPUT_VARIABLE CMAKE_COMPILER_OUTPUT RETURN_VALUE CMAKE_COMPILER_RETURN) SET(CMAKE_COMPILER_IS_GNUCC_RUN 1) IF(NOT CMAKE_COMPILER_RETURN) IF("${CMAKE_COMPILER_OUTPUT}" MATCHES ".*THIS_IS_GNU.*" ) |