mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-25 23:29:24 +00:00
suggested sdl compile fix
This commit is contained in:
parent
6d91cabaff
commit
80437b3515
1 changed files with 11 additions and 11 deletions
|
|
@ -7,6 +7,17 @@ mark_as_advanced(ZLIB_ROOT)
|
|||
# Png depends on zlib
|
||||
add_subdirectory(zlib ${CMAKE_BINARY_DIR}/temp/zlib EXCLUDE_FROM_ALL)
|
||||
|
||||
if(APPLE)
|
||||
enable_language(OBJC)
|
||||
advanced_option(AL_ALEXT_PROTOTYPES "Use Extended OpenAL options" OFF)
|
||||
else()
|
||||
advanced_option(AL_ALEXT_PROTOTYPES "Use Extended OpenAL options" ON)
|
||||
endif()
|
||||
|
||||
if(AL_ALEXT_PROTOTYPES)
|
||||
addDef( "AL_ALEXT_PROTOTYPES" )
|
||||
endif()
|
||||
|
||||
#SDL
|
||||
set(SDL_SHARED ON CACHE BOOL "Build a shared version of the library" FORCE)
|
||||
set(SDL_STATIC OFF CACHE BOOL "Build a static version of the library" FORCE)
|
||||
|
|
@ -176,17 +187,6 @@ add_subdirectory(squish ${CMAKE_BINARY_DIR}/temp/squish EXCLUDE_FROM_ALL)
|
|||
add_subdirectory(collada ${CMAKE_BINARY_DIR}/temp/collada EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(glad ${CMAKE_BINARY_DIR}/temp/glad EXCLUDE_FROM_ALL)
|
||||
|
||||
#if(TORQUE_SFX_OPENAL AND NOT TORQUE_DEDICATED)
|
||||
if(APPLE)
|
||||
advanced_option(AL_ALEXT_PROTOTYPES "Use Extended OpenAL options" OFF)
|
||||
else()
|
||||
advanced_option(AL_ALEXT_PROTOTYPES "Use Extended OpenAL options" ON)
|
||||
endif(APPLE)
|
||||
|
||||
if(AL_ALEXT_PROTOTYPES)
|
||||
addDef( "AL_ALEXT_PROTOTYPES" )
|
||||
endif()
|
||||
|
||||
#hidden options
|
||||
if(TORQUE_SFX_OPENAL)
|
||||
advanced_option(TORQUE_OGGVORBIS "Enable OGG Vorbis" ON)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue