Changeset 2638 for code/branches/buildsystem2/cmake
- Timestamp:
- Feb 7, 2009, 8:03:27 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem2/cmake/BuildConfigGCC.cmake
r2626 r2638 23 23 # Sets the right compiler and linker flags for GCC. 24 24 # 25 26 # Determine compiler version 27 EXEC_PROGRAM( 28 ${CMAKE_CXX_COMPILER} 29 ARGS ${CMAKE_CXX_COMPILER_ARG1} -dumpversion 30 OUTPUT_VARIABLE GCC_VERSION 31 ) 32 33 # GCC may not support #pragma GCC system_header correctly when using 34 # templates. According to Bugzilla, it was fixed March 07 but tests 35 # have confirmed that GCC 4.0.0 does not pose a problem for our cases. 36 INCLUDE(CompareVersionStrings) 37 COMPARE_VERSION_STRINGS("${GCC_VERSION}" "4.0.0" _compare_result) 38 IF(NOT _compare_result LESS 0) 39 SET(GCC_SYSTEM_HEADER_SUPPORT TRUE) 40 ENDIF() 25 41 26 42 # Also include environment flags. Could cause conflicts though
Note: See TracChangeset
for help on using the changeset viewer.