From 236df223ac8cc349494fc6449dfb709b85e19527 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Fri, 11 Oct 2024 09:35:33 -0500 Subject: [PATCH] CMake: force a single generator configuration in multiple generator setup --- cmake/setup_cached_variables.cmake | 10 ++++++++++ 1 file changed, 10 insertions(+) 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: # -- 2.39.5