From: Matthias Maier Date: Fri, 3 Mar 2023 20:18:57 +0000 (-0600) Subject: CMake: opportunistically try to print every target X-Git-Tag: v9.5.0-rc1~446^2~12 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fc98a14c7815b9f47870ccea49e555538bd442d;p=dealii.git CMake: opportunistically try to print every target --- diff --git a/cmake/setup_write_config.cmake b/cmake/setup_write_config.cmake index c98b7abd7d..07458af8ec 100644 --- a/cmake/setup_write_config.cmake +++ b/cmake/setup_write_config.cmake @@ -203,20 +203,15 @@ _detailed("#\n# Interface targets:\n") foreach(_feature ${_deal_ii_features_sorted}) if(${DEAL_II_WITH_${_feature}}) string(TOLOWER ${_feature} _feature_lowercase) - if(${${_feature}_SPLIT_CONFIGURATION}) - foreach(_build ${DEAL_II_BUILD_TYPE}) - string(TOLOWER ${_build} _build_lowercase) - if(TARGET interface_${_feature_lowercase}_${_build_lowercase}) - _detailed("#\n") - _print_target(interface_${_feature_lowercase}_${_build_lowercase}) - endif() - endforeach() - else() - if(TARGET interface_${_feature_lowercase}) + foreach(_target ${DEAL_II_BUILD_TYPES} + interface_${_feature_lowercase} interface_${_feature_lowercase}_debug interface_${_feature_lowercase}_release + bundled_${_feature_lowercase} bundled_${_feature_lowercase}_debug bundled_${_feature_lowercase}_release + ) + if(TARGET ${_target}) _detailed("#\n") - _print_target(interface_${_feature_lowercase}) + _print_target(${_target}) endif() - endif() + endforeach() endif() endforeach()