From: Bastian Dehn Date: Thu, 2 Oct 2025 07:30:05 +0000 (+0200) Subject: change set c flags normal variable X-Git-Tag: 1.1.1^2~10 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=a0b7b441677e435d37a6bd2853419a94d1a6ad00;p=mv_none_space.git change set c flags normal variable --- 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}")