From: Matthias Maier Date: Thu, 22 Mar 2018 18:26:24 +0000 (-0500) Subject: CMake: Also propagate compiler and linker flags to the boost check X-Git-Tag: v9.0.0-rc1~291^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6091%2Fhead;p=dealii.git CMake: Also propagate compiler and linker flags to the boost check --- diff --git a/cmake/configure/configure_boost.cmake b/cmake/configure/configure_boost.cmake index cd18fe693b..cdbdaecd1b 100644 --- a/cmake/configure/configure_boost.cmake +++ b/cmake/configure/configure_boost.cmake @@ -148,6 +148,9 @@ MACRO(FEATURE_BOOST_FIND_EXTERNAL var) COMMAND ${CMAKE_COMMAND} -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} + "-DCMAKE_CXX_FLAGS=${DEAL_II_CXX_FLAGS}" + "-DCMAKE_EXE_LINKER_FLAGS=${DEAL_II_LINKER_FLAGS}" + "-DCMAKE_SHARED_LINKER_FLAGS=${DEAL_II_LINKER_FLAGS}" "-DBOOST_INCLUDE_DIRS=${BOOST_INCLUDE_DIRS}" "-DBOOST_LIBRARIES=${BOOST_LIBRARIES}" ${CMAKE_CURRENT_SOURCE_DIR}/cmake/configure/TestBoostBug