From 9a32bd49766e278eaa5bf1cba8a67af8496c53bf Mon Sep 17 00:00:00 2001 From: "devin-ai-integration[bot]" <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 17 Sep 2024 21:56:10 +0000 Subject: [PATCH] Focus on detecting multi-config generators using GENERATOR_IS_MULTI_CONFIG property --- CMakeLists.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9815e24d0..03937b342 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,12 +43,10 @@ endif() set(OPENMIND_PRIME_TABLE Boost CACHE STRING "Table of predefined prime numbers") get_property(is_multi_config GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) -if(NOT ${is_multi_config}) - # Only set CMAKE_BUILD_TYPE for single-configuration generators - set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Build type for single-configuration generators" FORCE) +if(is_multi_config) + message(STATUS "Multi-configuration generator detected.") else() - # For multi-configuration generators, set the available configuration types - set(CMAKE_CONFIGURATION_TYPES "Debug;Release;MinSizeRel;RelWithDebInfo" CACHE STRING "Configuration types" FORCE) + message(STATUS "Single-configuration generator detected.") endif() if(CMAKE_BUILD_TYPE MATCHES [Dd][Ee][Bb][Uu][Gg])