add strict compilation flags

This commit is contained in:
arthur.jamet
2021-06-17 18:22:17 +02:00
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ jobs:
- name: Build
run: |
mkdir build && cd build
cmake ..
cmake .. -DCMAKE_BUILD_TYPE=Debug
cmake --build .
- name: CheckBinaryName
shell: bash
+4 -2
View File
@@ -3,8 +3,10 @@ project(bomberman)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_FLAGS_DEBUG "-Wall -Wextra -Wshadow -Werror -W -g")
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -D RELEASE -Wno-dev")
if (CMAKE_COMPILER_IS_GNUCC)
set(CMAKE_CXX_FLAGS_DEBUG "-Wall -Wextra -Wshadow -W -Werror -g")
endif()
set(CMAKE_CXX_FLAGS_RELEASE "-O2")
include_directories(lib/Ray/sources)
include_directories(lib/wal/sources)