From 83e0b5af7b6d501f23738540b8bf6d07950ce3a8 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Wed, 25 Apr 2018 13:14:49 -0500 Subject: [PATCH] CMake: add a safeguard --- cmake/configure/configure_adolc.cmake | 9 +++++++++ 1 file changed, 9 insertions(+) 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) -- 2.39.5