Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 30, 2011, 12:31:28 AM (13 years ago)
Author:
rgrieder
Message:

The COUNTER macro required for full build units was only added in GCC 4.3.
Warn the developer if using GCC < 4.3 and full build units.

Location:
code/branches/unity_build/cmake
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/unity_build/cmake/CompilerConfigGCC.cmake

    r8368 r8677  
    4343IF(_compare_result GREATER -1)
    4444  SET(PCH_COMPILER_SUPPORT TRUE)
     45ENDIF()
     46
     47# __COUNTER__ macro was only added in GCC 4.3
     48# It might be required to make full build units work
     49COMPARE_VERSION_STRINGS("${GCC_VERSION}" "4.3.0" _compare_result)
     50IF(_compare_result GREATER -1)
     51  SET(HAVE_COUNTER_MACRO TRUE)
    4552ENDIF()
    4653
  • code/branches/unity_build/cmake/CompilerConfigMSVC.cmake

    r8368 r8677  
    3333# Orxonox only supports MSVC 8 and above, which gets asserted above
    3434SET(PCH_COMPILER_SUPPORT TRUE)
     35
     36# __COUNTER__ macro has been around since VS 2005
     37# It might be required to make full build units work
     38SET(HAVE_COUNTER_MACRO TRUE)
    3539
    3640
Note: See TracChangeset for help on using the changeset viewer.