mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-06 03:12:01 +00:00
add strict compilation flags
This commit is contained in:
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user