Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 7, 2009, 8:03:27 PM (16 years ago)
Author:
rgrieder
Message:

Removed about a thousand lines of warnings when compiling with GCC 3. It's not such a clean workaround but better than polluted output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem2/cmake/BuildConfigGCC.cmake

    r2626 r2638  
    2323 #    Sets the right compiler and linker flags for GCC.
    2424 #
     25
     26# Determine compiler version
     27EXEC_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.
     36INCLUDE(CompareVersionStrings)
     37COMPARE_VERSION_STRINGS("${GCC_VERSION}" "4.0.0" _compare_result)
     38IF(NOT _compare_result LESS 0)
     39  SET(GCC_SYSTEM_HEADER_SUPPORT TRUE)
     40ENDIF()
    2541
    2642# Also include environment flags. Could cause conflicts though
Note: See TracChangeset for help on using the changeset viewer.