Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 20, 2009, 9:20:47 AM (16 years ago)
Author:
rgrieder
Message:

Merged pch branch back to trunk.

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/cmake/BuildConfigGCC.cmake

    r3111 r3196  
    2424 #
    2525
     26# Shortcut for CMAKE_COMPILER_IS_GNUCXX and ..._GNUC
     27SET(CMAKE_COMPILER_IS_GNU TRUE)
     28
    2629# Determine compiler version
    2730EXEC_PROGRAM(
     
    3841IF(_compare_result LESS 0)
    3942  SET(GCC_NO_SYSTEM_HEADER_SUPPORT TRUE)
     43ENDIF()
     44
     45# GCC only supports PCH in versions 3.4 and above
     46INCLUDE(CompareVersionStrings)
     47COMPARE_VERSION_STRINGS("${GCC_VERSION}" "3.4.0" _compare_result)
     48IF(_compare_result GREATER -1)
     49  SET(PCH_COMPILER_SUPPORT TRUE)
    4050ENDIF()
    4151
     
    6777ADD_COMPILER_FLAGS("-Wno-deprecated" CXX CACHE)
    6878
     79# Always show why a precompiled header file could not be used
     80ADD_COMPILER_FLAGS("-Winvalid-pch" CXX CACHE)
     81
    6982# Increase warning level if requested
    7083IF(EXTRA_COMPILER_WARNINGS)
Note: See TracChangeset for help on using the changeset viewer.