From 069f5753096d05533f9a6ba1f058779c8cf0bee1 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sat, 30 May 2026 11:18:55 +0200 Subject: [PATCH] fix init default build type --- CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bb09a1d..c48dd5c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,14 +1,15 @@ cmake_minimum_required(VERSION 3.25.1) -project(mv-none-space VERSION 1.1.12) - set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "build type") -if("${CMAKE_BUILD_TYPE}" STREQUAL "Release") +project(mv-none-space VERSION 1.1.12) + +if(${CMAKE_BUILD_TYPE} STREQUAL "Release") set(CMAKE_C_FLAGS "-s -std=c99 -Werror -Wextra -pedantic") else() set(CMAKE_C_FLAGS "-std=c99 -g -Wall -Wextra -pedantic -fsanitize=address") endif() + message(STATUS "CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}") message(STATUS "CMAKE_C_FLAGS: ${CMAKE_C_FLAGS}") -- 2.47.3