From: Bastian Dehn Date: Sat, 30 May 2026 09:16:33 +0000 (+0200) Subject: fix default build type init X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=81d3376895f3e6b8b600d172c1d77de7f3da9935;p=feierabend.git fix default build type init --- 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()