]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Add a guard around FIND_SYSTEM_LIBRARY for windows 2801/head
authorMatthias Maier <tamiko@43-1.org>
Mon, 11 Jul 2016 09:33:40 +0000 (04:33 -0500)
committerMatthias Maier <tamiko@43-1.org>
Mon, 11 Jul 2016 09:33:40 +0000 (04:33 -0500)
On Windows targets the rt library is not available and somehow we pick it
up. Thus, guard the whole configuration.

Closes #2397

cmake/configure/configure_boost.cmake

index a097da7944ca9b1dd744d5addfb1798b8cbc0c97..1ffbd701a74b1f40e2bc328d63d489286da46101 100644 (file)
@@ -26,10 +26,12 @@ MACRO(FEATURE_BOOST_CONFIGURE_BUNDLED)
   #
   # Add rt to the link interface as well, boost/chrono needs it.
   #
-  FIND_SYSTEM_LIBRARY(rt_LIBRARY NAMES rt)
-  MARK_AS_ADVANCED(rt_LIBRARY)
-  IF(NOT rt_LIBRARY MATCHES "-NOTFOUND")
-    SET(BOOST_LIBRARIES ${rt_LIBRARY})
+  IF(NOT CMAKE_SYSTEM_NAME MATCHES "Windows")
+    FIND_SYSTEM_LIBRARY(rt_LIBRARY NAMES rt)
+    MARK_AS_ADVANCED(rt_LIBRARY)
+    IF(NOT rt_LIBRARY MATCHES "-NOTFOUND")
+      SET(BOOST_LIBRARIES ${rt_LIBRARY})
+    ENDIF()
   ENDIF()
 
   ENABLE_IF_SUPPORTED(BOOST_CXX_FLAGS "-Wno-unused-local-typedefs")

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.