From: Matthias Maier Date: Wed, 2 Feb 2022 13:02:16 +0000 (-0600) Subject: CMake: Add an assert to DEAL_II_PACKAGE_HANDLE X-Git-Tag: v9.4.0-rc1~521^2~4 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da8cf45b7d9a91cdac3e5a761c9de52db7f8c32e;p=dealii.git CMake: Add an assert to DEAL_II_PACKAGE_HANDLE --- diff --git a/cmake/macros/macro_deal_ii_package_handle.cmake b/cmake/macros/macro_deal_ii_package_handle.cmake index 7ef56e5ae4..3c8378454c 100644 --- a/cmake/macros/macro_deal_ii_package_handle.cmake +++ b/cmake/macros/macro_deal_ii_package_handle.cmake @@ -93,6 +93,13 @@ MACRO(DEAL_II_PACKAGE_HANDLE _feature) SET(_fill_clear TRUE) ELSE() + IF ("${_suffix}" STREQUAL "") + MESSAGE(FATAL_ERROR + "Internal configuration error: the second " + "argument to DEAL_II_PACKAGE_HANDLE must be a keyword" + ) + ENDIF() + MARK_AS_ADVANCED(${_arg}) IF(_fill_clear) # FIXME