From: Matthias Maier Date: Wed, 25 Apr 2018 18:14:49 +0000 (-0500) Subject: CMake: add a safeguard X-Git-Tag: v9.0.0-rc1~103^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83e0b5af7b6d501f23738540b8bf6d07950ce3a8;p=dealii.git CMake: add a safeguard --- diff --git a/cmake/configure/configure_adolc.cmake b/cmake/configure/configure_adolc.cmake index 17bb4d4e96..51bb5670c3 100644 --- a/cmake/configure/configure_adolc.cmake +++ b/cmake/configure/configure_adolc.cmake @@ -17,6 +17,15 @@ # 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)