Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 3, 2009, 8:40:17 PM (15 years ago)
Author:
rgrieder
Message:

Adding experimental precompiled header file support. It seems to work quite well with MSVC, but has a performance penalty when used with GCC

File:
1 edited

Legend:

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

    r3116 r3117  
    4343ENDIF()
    4444
     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)
     50ENDIF()
     51
    4552# Also include environment flags. Could cause conflicts though
    4653SET_COMPILER_FLAGS("$ENV{CXXFLAGS}" CXX CACHE)
Note: See TracChangeset for help on using the changeset viewer.