From 81d3376895f3e6b8b600d172c1d77de7f3da9935 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sat, 30 May 2026 11:16:33 +0200 Subject: [PATCH] fix default build type init --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3883965..cf386d2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,9 +1,9 @@ cmake_minimum_required(VERSION 3.16.3) -project(feierabend-c) - set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "build type") +project(feierabend-c) + if(${CMAKE_BUILD_TYPE} STREQUAL "Release") set(CMAKE_C_FLAGS "-s -std=c99 -Werror -Wextra -pedantic") else() -- 2.47.3