mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Define some necessary compiler options
This commit is contained in:
parent
dcf1fb2501
commit
88981bb930
1 changed files with 8 additions and 1 deletions
|
@ -14,7 +14,14 @@ set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/stuff/cmake/modules ${CMAKE_MODU
|
|||
# Add extended path for FreeBSD and Homebrew on OS X
|
||||
list(APPEND CMAKE_PREFIX_PATH /usr/local)
|
||||
|
||||
#yquake2 compilation options
|
||||
# Enforce compiler flags (GCC compatible, yquake2
|
||||
# won't build with another compiler anyways)
|
||||
# -Wall -> More warnings
|
||||
# -fno-strict-aliasing -> Quake 2 is far away from strict aliasing
|
||||
# -fwrapv -> Make signed integer overflows defined
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -fno-strict-aliasing -fwrapv")
|
||||
|
||||
# yquake2 compilation options
|
||||
option(ZIP_SUPPORT "ZIP support" ON)
|
||||
option(OGG_SUPPORT "OGG Vorbis playback support (Music)" ON)
|
||||
option(OPENAL_SUPPORT "OpenAL support" ON)
|
||||
|
|
Loading…
Reference in a new issue