From 4f4d793445c87041ab5b1a0979fc2ab39d0eb45c Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Wed, 25 Oct 2017 18:36:31 +0200 Subject: [PATCH] Add additional error string and name the boost libraries with absolute pathes --- cmake/configure/configure_boost.cmake | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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() -- 2.39.5