]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Also export additional variables to dea.IIConfig.cmake 14650/head
authorDaniel Arndt <arndtd@ornl.gov>
Thu, 12 Jan 2023 03:42:35 +0000 (22:42 -0500)
committerDaniel Arndt <arndtd@ornl.gov>
Thu, 12 Jan 2023 03:44:42 +0000 (22:44 -0500)
Co-authored-by: Matthias Maier <tamiko@43-1.org>
cmake/config/CMakeLists.txt

index e90065d9e66207f34d993c8fa688c5da547bf48b..512e57b8070745636bcb7ed68d5b17db66fe97e2 100644 (file)
@@ -199,7 +199,7 @@ endforeach()
 
 get_cmake_property(_res VARIABLES)
 foreach(_var ${_res})
-  if(_var MATCHES "DEAL_II_.*WITH")
+  if(_var MATCHES "DEAL_II_.*(WITH|FEATURE.*BUNDLED)")
     list(APPEND _additional_config_variables ${_var})
   endif()
 endforeach()
@@ -221,8 +221,9 @@ foreach(_name ${_deal_ii_features_sorted})
           "set(DEAL_II_${_name}_VERSION \"${${_name}_VERSION}\")\n"
           )
       endif()
+
       foreach(_additional ${_additional_config_variables})
-        if(_additional MATCHES "DEAL_II_${_name}_WITH")
+        if(_additional MATCHES "(DEAL_II_${_name}_WITH|DEAL_II_FEATURE_${_name})")
           file(APPEND ${_file} "set(${_additional} ${${_additional}})\n")
         endif()
       endforeach()

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.