mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-11-05 10:49:41 +01:00
Add -std=c99 for C-Hashmap and FAudio
GCC on CentOS will default to C90, it seems. This means it needs C99 explicitly specified for C-Hashmap and FAudio, or it will fail on them using C99 features (variable declaration in a `for`-loop and the `restrict` keyword, respectively).
This commit is contained in:
parent
ff611a56ff
commit
b0d2a6a372
1 changed files with 4 additions and 0 deletions
|
@ -318,6 +318,10 @@ else()
|
|||
# Disable RTTI
|
||||
string(REPLACE "-frtti" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
||||
set_source_files_properties(${VVV_CXX_SRC} PROPERTIES COMPILE_FLAGS -fno-rtti)
|
||||
|
||||
# Dependencies (as needed)
|
||||
set_source_files_properties(${FAUDIO_SRC} PROPERTIES COMPILE_FLAGS -std=c99)
|
||||
set_source_files_properties(${CHM_SRC} PROPERTIES COMPILE_FLAGS -std=c99)
|
||||
endif()
|
||||
|
||||
# Unfortunately, it doesn't seem like distros package LodePNG
|
||||
|
|
Loading…
Reference in a new issue