Changeset 8340 for code/branches/kicklib2/cmake
- Timestamp:
- Apr 26, 2011, 10:50:18 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/kicklib2/cmake/CompilerConfigGCC.cmake
r8335 r8340 37 37 OUTPUT_VARIABLE GCC_VERSION 38 38 ) 39 40 # GCC may not support #pragma GCC system_header correctly when using41 # templates. According to Bugzilla, it was fixed March 07 but tests42 # have confirmed that GCC 4.0.0 does not pose a problem for our cases.43 COMPARE_VERSION_STRINGS("${GCC_VERSION}" "4.0.0" _compare_result)44 IF(_compare_result LESS 0)45 SET(GCC_NO_SYSTEM_HEADER_SUPPORT TRUE)46 ENDIF()47 39 48 40 # GCC only supports PCH in versions 3.4 and above … … 94 86 ADD_COMPILER_FLAGS("-fno-strict-aliasing" CACHE) 95 87 96 # For GCC older than version 4, do not display sign compare warnings97 # because of boost::filesystem (which creates about a hundred per include)98 ADD_COMPILER_FLAGS("-Wno-sign-compare" GCC_NO_SYSTEM_HEADER_SUPPORT CACHE)99 100 88 # For newer GCC (4.3 and above), don't display hundreds of annoying deprecated 101 89 # messages. Other versions don't seem to show any such warnings at all.
Note: See TracChangeset
for help on using the changeset viewer.