mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
cmake: set C std and enable pedantic warnings
seed262190fafandcd5946be73
This commit is contained in:
parent
93aaa77de3
commit
63069ce710
1 changed files with 3 additions and 0 deletions
|
|
@ -5,6 +5,8 @@ if("${CMAKE_COMPILER_IS_GNUCC}" AND "${CMAKE_SYSTEM_NAME}" MATCHES "Windows" AND
|
|||
target_link_options(SRB2SDL2 PRIVATE "-static")
|
||||
endif()
|
||||
|
||||
set_property(TARGET SRB2SDL2 PROPERTY C_STANDARD 11)
|
||||
|
||||
# Core sources
|
||||
target_sourcefile(c)
|
||||
target_sources(SRB2SDL2 PRIVATE comptime.c md5.c config.h.in)
|
||||
|
|
@ -220,6 +222,7 @@ target_compile_options(SRB2SDL2 PRIVATE
|
|||
-Wall
|
||||
-Wno-trigraphs
|
||||
-W # Was controlled by RELAXWARNINGS
|
||||
-pedantic
|
||||
-Wfloat-equal
|
||||
-Wundef
|
||||
-Wpointer-arith
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue