]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: force a single generator configuration in multiple generator setup 17768/head
authorMatthias Maier <tamiko@43-1.org>
Fri, 11 Oct 2024 14:35:33 +0000 (09:35 -0500)
committerMatthias Maier <tamiko@43-1.org>
Fri, 11 Oct 2024 15:00:49 +0000 (10:00 -0500)
cmake/setup_cached_variables.cmake

index f25a72fe38cf68af727d351d13740ae008201045..788e68a826f35d3f3a3408b7c23e43c09d85759b 100644 (file)
@@ -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:
 #

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.