]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Add an assert to DEAL_II_PACKAGE_HANDLE
authorMatthias Maier <tamiko@43-1.org>
Wed, 2 Feb 2022 13:02:16 +0000 (07:02 -0600)
committerMatthias Maier <tamiko@43-1.org>
Sat, 5 Feb 2022 20:59:37 +0000 (14:59 -0600)
cmake/macros/macro_deal_ii_package_handle.cmake

index 7ef56e5ae43350ebb4fa8427c24bda231265105d..3c8378454c4dab13aadffaa1f4de0672628c9bef 100644 (file)
@@ -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

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.