[Orxonox-commit 2818] r7521 - code/branches/ois_update/cmake

rgrieder at orxonox.net rgrieder at orxonox.net
Mon Oct 11 12:32:24 CEST 2010


Author: rgrieder
Date: 2010-10-11 12:32:23 +0200 (Mon, 11 Oct 2010)
New Revision: 7521

Modified:
   code/branches/ois_update/cmake/LibraryConfig.cmake
Log:
Bugfix (no GCC_VERSION variable with other compilers).

Modified: code/branches/ois_update/cmake/LibraryConfig.cmake
===================================================================
--- code/branches/ois_update/cmake/LibraryConfig.cmake	2010-10-11 10:29:16 UTC (rev 7520)
+++ code/branches/ois_update/cmake/LibraryConfig.cmake	2010-10-11 10:32:23 UTC (rev 7521)
@@ -167,10 +167,12 @@
 # No auto linking, so this option is useless anyway
 MARK_AS_ADVANCED(Boost_LIB_DIAGNOSTIC_DEFINITIONS)
 # 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!")
+IF(GCC_VERSION)
+  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()
 ENDIF()
 




More information about the Orxonox-commit mailing list