Changeset 8340 for code/branches
- Timestamp:
- Apr 26, 2011, 10:50:18 PM (14 years ago)
- Location:
- code/branches/kicklib2
- Files:
-
- 2 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. -
code/branches/kicklib2/src/libraries/util/CMakeLists.txt
r8320 r8340 40 40 ) 41 41 42 IF(GCC_NO_SYSTEM_HEADER_SUPPORT)43 # Get around displaying a few hundred lines of warning code44 SET_SOURCE_FILES_PROPERTIES(MultiType.cc PROPERTIES COMPILE_FLAGS "-w")45 ENDIF()46 42 IF(MSVC) 47 43 # Simply using #pragma warning(disable:4244) doesn't really disable it
Note: See TracChangeset
for help on using the changeset viewer.