]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add additional error string and name the boost libraries with absolute pathes 5318/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 25 Oct 2017 16:36:31 +0000 (18:36 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 25 Oct 2017 16:36:31 +0000 (18:36 +0200)
cmake/configure/configure_boost.cmake

index fc7bbde4eb41fca693496cf80647ae7f1b6357dc..7ff6c9b8785d67f68b10720e5d1805e5691c0999 100644 (file)
@@ -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 <string>
@@ -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()

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.