]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Bugfix: Add -lrt to the link interface in case of bundled boost
authorMatthias Maier <matthias.maier@iwr.uni-heidelberg.de>
Tue, 27 Jan 2015 11:36:12 +0000 (12:36 +0100)
committerMatthias Maier <matthias.maier@iwr.uni-heidelberg.de>
Tue, 27 Jan 2015 11:49:12 +0000 (12:49 +0100)
cmake/configure/configure_boost.cmake

index c683da2d3748cb42e056e6af37c78aa535ea82db..66c3092bf786fb7c5e35f1cdc15096e434d64ce5 100644 (file)
@@ -23,6 +23,16 @@ SET(DEAL_II_WITH_BOOST ON # Always true. We need it :-]
 
 
 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})
+  ENDIF()
+
   SET(BOOST_BUNDLED_INCLUDE_DIRS ${BOOST_FOLDER}/include)
 ENDMACRO()
 

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.