From cb08b77f5d18b417129487756bc72166b1080ff7 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Tue, 27 Jan 2015 12:36:12 +0100 Subject: [PATCH] CMake: Bugfix: Add -lrt to the link interface in case of bundled boost --- cmake/configure/configure_boost.cmake | 10 ++++++++++ 1 file changed, 10 insertions(+) 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() -- 2.39.5