[Orxonox-commit 978] r5702 - code/trunk/cmake
rgrieder at orxonox.net
rgrieder at orxonox.net
Sun Aug 30 13:19:53 CEST 2009
Author: rgrieder
Date: 2009-08-30 13:19:53 +0200 (Sun, 30 Aug 2009)
New Revision: 5702
Modified:
code/trunk/cmake/CompilerConfigGCC.cmake
Log:
Added incompatibility warning: Orxonox does not compile with GCC 4.4 and later in conjunction with boost 1.36 and earlier.
Modified: code/trunk/cmake/CompilerConfigGCC.cmake
===================================================================
--- code/trunk/cmake/CompilerConfigGCC.cmake 2009-08-30 10:06:59 UTC (rev 5701)
+++ code/trunk/cmake/CompilerConfigGCC.cmake 2009-08-30 11:19:53 UTC (rev 5702)
@@ -24,6 +24,7 @@
#
INCLUDE(FlagUtilities)
+INCLUDE(CompareVersionStrings)
# Shortcut for CMAKE_COMPILER_IS_GNUCXX and ..._GNUC
SET(CMAKE_COMPILER_IS_GNU TRUE)
@@ -35,10 +36,17 @@
OUTPUT_VARIABLE GCC_VERSION
)
+# Complain about incompatibilities
+COMPARE_VERSION_STRINGS("${GCC_VERSION}" "4.4.0" _compare_result)
+IF(NOT _compare_result LESS 0)
+ IF(${Boost_VERSION} LESS 103700)
+ MESSAGE(STATUS "Warning: Boost versions earlier than 1.37 may not compile with GCC 4.4 or later!")
+ ENDIF()
+ENDIF()
+
# GCC may not support #pragma GCC system_header correctly when using
# templates. According to Bugzilla, it was fixed March 07 but tests
# have confirmed that GCC 4.0.0 does not pose a problem for our cases.
-INCLUDE(CompareVersionStrings)
COMPARE_VERSION_STRINGS("${GCC_VERSION}" "4.0.0" _compare_result)
IF(_compare_result LESS 0)
SET(GCC_NO_SYSTEM_HEADER_SUPPORT TRUE)
More information about the Orxonox-commit
mailing list