From a0b7b441677e435d37a6bd2853419a94d1a6ad00 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Thu, 2 Oct 2025 09:30:05 +0200 Subject: [PATCH] change set c flags normal variable --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4264e55..27e6064 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,9 +1,9 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.25.1) -IF (CMAKE_BUILD_TYPE STREQUAL "Release") - SET(CMAKE_C_FLAGS "-std=c99 -Werror" CACHE STRING "release c flags") +IF ("${CMAKE_BUILD_TYPE}" STREQUAL "Release") + SET(CMAKE_C_FLAGS "-std=c99 -Werror") ELSE() - SET(CMAKE_C_FLAGS "-std=c99 -g -Wall -fsanitize=address" CACHE STRING "debug c flags") + SET(CMAKE_C_FLAGS "-std=c99 -g -Wall -fsanitize=address") ENDIF() MESSAGE(STATUS "CMAKE_C_FLAGS: ${CMAKE_C_FLAGS}") -- 2.47.3