From: Daniel Arndt Date: Thu, 12 Jan 2023 03:42:35 +0000 (-0500) Subject: Also export additional variables to dea.IIConfig.cmake X-Git-Tag: v9.5.0-rc1~658^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F14650%2Fhead;p=dealii.git Also export additional variables to dea.IIConfig.cmake Co-authored-by: Matthias Maier --- diff --git a/cmake/config/CMakeLists.txt b/cmake/config/CMakeLists.txt index e90065d9e6..512e57b807 100644 --- a/cmake/config/CMakeLists.txt +++ b/cmake/config/CMakeLists.txt @@ -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()