]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: add a safeguard
authorMatthias Maier <tamiko@43-1.org>
Wed, 25 Apr 2018 18:14:49 +0000 (13:14 -0500)
committerMatthias Maier <tamiko@43-1.org>
Thu, 26 Apr 2018 13:56:50 +0000 (08:56 -0500)
cmake/configure/configure_adolc.cmake

index 17bb4d4e96703638193726f7e84639e550052684..51bb5670c3bbc1d14a1dd96e413fce1691087eb6 100644 (file)
 # Configuration for the ADOL-C library:
 #
 
+IF(NOT FEATURE_BOOST_PROCESSED)
+  MESSAGE(FATAL_ERROR "\n"
+    "Internal build system error: The configuration of "
+    "DEAL_II_WITH_ADOLC depends on "
+    "DEAL_II_WITH_BOOST, but CONFIGURE_FEATURE(ADOLC) "
+    "was called before CONFIGURE_FEATURE(BOOST).\n\n"
+    )
+ENDIF()
+
 MACRO(FEATURE_ADOLC_FIND_EXTERNAL var)
   FIND_PACKAGE(ADOLC)
 

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.