]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Some final changes:
authorMatthias Maier <tamiko@kyomu.43-1.org>
Fri, 16 Aug 2013 22:38:21 +0000 (22:38 +0000)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Fri, 16 Aug 2013 22:38:21 +0000 (22:38 +0000)
  - Get the behaviour for BOOST_DIR right
  - Print out *_DIR variables in detailed.log as well

git-svn-id: https://svn.dealii.org/trunk@30325 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/configure/configure_boost.cmake
deal.II/cmake/setup_finalize.cmake

index afe23bab45a4169e374513a81dcb91ff1a2cdc61..f2071971ea5b63ced0ab9358ab0d29316ab952b3 100644 (file)
@@ -82,7 +82,12 @@ MACRO(FEATURE_BOOST_FIND_EXTERNAL var)
       Boost_SYSTEM_FOUND AND
       (NOT DEAL_II_WITH_THREADS OR Boost_THREAD_FOUND)
     )
+    MARK_AS_ADVANCED(BOOST_DIR)
     SET(${var} TRUE)
+  ELSE()
+    SET(BOOST_DIR "" CACHE PATH
+      "An optional hint to a boost directory"
+      )
   ENDIF()
 ENDMACRO()
 
index bccc2b16b867a14ee324e29323b2ae2052795e9e..c90b9263cac4448a66b49d550d2c859e2399c9f4 100644 (file)
@@ -193,6 +193,13 @@ FOREACH(_var ${_features})
         _detailed("#            ${_feature}_VERSION = ${${_feature}_VERSION}\n")
       ENDIF()
 
+      #
+      # Print out ${_feature}_DIR:
+      #
+      IF(DEFINED ${_feature}_DIR)
+        _detailed("#            ${_feature}_DIR = ${${_feature}_DIR}\n")
+      ENDIF()
+
       #
       # Print the feature configuration:
       #

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.