From 1430d207b606eab721b02c10d05c76929532c9a3 Mon Sep 17 00:00:00 2001 From: Alberto Miranda Date: Thu, 14 Jul 2022 20:23:33 +0200 Subject: [PATCH] Do not forcibly set CMAKE_BUILD_TYPE if unknown --- CMakeLists.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c4d88f1..fbee9ee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,11 +49,7 @@ if (NOT is_multi_config) CACHE STRING "Choose the type of build." FORCE ) elseif (NOT CMAKE_BUILD_TYPE IN_LIST allowed_build_types) - message(WARNING "Unknown build type '${CMAKE_BUILD_TYPE}'. " - "Defaulting to '${default_build_type}'") - set(CMAKE_BUILD_TYPE "${default_build_type}" - CACHE STRING "Choose the type of build." FORCE - ) + message(WARNING "Unknown build type '${CMAKE_BUILD_TYPE}'.") endif () endif () -- GitLab