From: Matthias Maier Date: Fri, 11 Oct 2024 14:35:33 +0000 (-0500) Subject: CMake: force a single generator configuration in multiple generator setup X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=236df223ac8cc349494fc6449dfb709b85e19527;p=dealii.git CMake: force a single generator configuration in multiple generator setup --- diff --git a/cmake/setup_cached_variables.cmake b/cmake/setup_cached_variables.cmake index f25a72fe38..788e68a826 100644 --- a/cmake/setup_cached_variables.cmake +++ b/cmake/setup_cached_variables.cmake @@ -139,6 +139,16 @@ if( NOT "${CMAKE_BUILD_TYPE}" STREQUAL "Release" AND ) endif() +# +# We do not currently support a "multiple generator" setup with our +# concurrent configuration and set up of a debug and release flavor within +# our "DebugRelease" target. In order to avoid confusion simply force the +# CMAKE_CONFIGURATION_TYPES variable to match the single-generator +# counterpart: +# + +set(CMAKE_CONFIGURATION_TYPES "${CMAKE_BUILD_TYPE}") + # # Configuration behaviour: #