From: Matthias Maier Date: Tue, 27 Jan 2015 11:36:12 +0000 (+0100) Subject: CMake: Bugfix: Add -lrt to the link interface in case of bundled boost X-Git-Tag: v8.3.0-rc1~515^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb08b77f5d18b417129487756bc72166b1080ff7;p=dealii.git CMake: Bugfix: Add -lrt to the link interface in case of bundled boost --- diff --git a/cmake/configure/configure_boost.cmake b/cmake/configure/configure_boost.cmake index c683da2d37..66c3092bf7 100644 --- a/cmake/configure/configure_boost.cmake +++ b/cmake/configure/configure_boost.cmake @@ -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()