From 8a32aac9dad5ff56edbc446370231660b90ec99d Mon Sep 17 00:00:00 2001 From: Dmitri Smirnov Date: Fri, 10 Jul 2026 15:29:40 +0000 Subject: [PATCH] build(cmake): stop defaulting to Debug builds Remove the top-level CMAKE_BUILD_TYPE fallback that forced single-config generators such as Ninja and Makefiles into Debug when users did not pass an explicit build type. This lets CMake preserve its standard empty build-type behavior and requires callers to choose Debug, Release, RelWithDebInfo, or MinSizeRel intentionally. --- CMakeLists.txt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ee00490d..93f081b99 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,11 +6,6 @@ if(NOT DEFINED CMAKE_CUDA_ARCHITECTURES) set(CMAKE_CUDA_ARCHITECTURES 75) endif() -# Default CMAKE_BUILD_TYPE=Debug for single-config generators (Ninja/Makefiles) when not specified -if(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE) - set(CMAKE_BUILD_TYPE Debug CACHE STRING "Build type") -endif() - project(simphony VERSION 0.7.0 LANGUAGES CXX CUDA) # Use CMake's standard testing option, but avoid enabling this project's tests