From: Daniel Arndt Date: Wed, 25 Oct 2017 16:36:31 +0000 (+0200) Subject: Add additional error string and name the boost libraries with absolute pathes X-Git-Tag: v9.0.0-rc1~870^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f4d793445c87041ab5b1a0979fc2ab39d0eb45c;p=dealii.git Add additional error string and name the boost libraries with absolute pathes --- diff --git a/cmake/configure/configure_boost.cmake b/cmake/configure/configure_boost.cmake index fc7bbde4eb..7ff6c9b878 100644 --- a/cmake/configure/configure_boost.cmake +++ b/cmake/configure/configure_boost.cmake @@ -86,8 +86,7 @@ MACRO(FEATURE_BOOST_FIND_EXTERNAL var) # RESET_CMAKE_REQUIRED() PUSH_CMAKE_REQUIRED("${DEAL_II_CXX_VERSION_FLAG}") - PUSH_CMAKE_REQUIRED("-L${Boost_LIBRARY_DIRS}") - SET(CMAKE_REQUIRED_LIBRARIES "-lboost_iostreams") + SET(CMAKE_REQUIRED_LIBRARIES "${BOOST_LIBRARIES}") CHECK_CXX_SOURCE_COMPILES( " #include @@ -116,6 +115,10 @@ MACRO(FEATURE_BOOST_FIND_EXTERNAL var) "with zlib support but a simple test failed! " "Therefore, the bundled boost package is used." ) + SET(BOOST_ADDITIONAL_ERROR_STRING + "DEAL_II_WITH_ZLIB=ON requires Boost.Iostreams to be compiled " + "with zlib support but a simple test failed! " + ) SET(${var} FALSE) ENDIF() RESET_CMAKE_REQUIRED()