We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bb3d56 commit 61408e3Copy full SHA for 61408e3
.github/workflows/cmake.yml
@@ -32,7 +32,7 @@ jobs:
32
- name: Configure CMake
33
env:
34
CC: ${{ matrix.compiler }}
35
- run: cmake -B ${{github.workspace}}/
+ run: cmake -D CMAKE_BUILD_TYPE=Debug -B ${{github.workspace}}/
36
37
- name: Build
38
CMakeLists.txt
@@ -16,8 +16,10 @@ endfunction()
16
17
# CONFIG
18
19
-set(CMAKE_BUILD_TYPE "Debug")
20
-#set(CMAKE_BUILD_TYPE "Release")
+if(NOT CMAKE_BUILD_TYPE)
+ set(CMAKE_BUILD_TYPE "Release")
21
+ message(STATUS "Setting build type to '${CMAKE_BUILD_TYPE}' as none was specified.")
22
+endif()
23
24
set(CMAKE_C_FLAGS "-Wall -Wextra --pedantic -Wno-strict-aliasing -Wno-variadic-macros")
25
set(CMAKE_C_FLAGS_DEBUG "-g -DDEBUG")
0 commit comments