]> gitweb.hhaalo.de Git - mv-none-space.git/commitdiff
fix init default build type
authorBastian Dehn <hhaalo@arcor.de>
Sat, 30 May 2026 09:18:55 +0000 (11:18 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 30 May 2026 09:18:55 +0000 (11:18 +0200)
CMakeLists.txt

index bb09a1d5bec17e1a46757c62f136be98e871f6cc..c48dd5c295f7bc90570115c603ae96897857c897 100644 (file)
@@ -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}")