Ver código fonte

suggested sdl compile fix

AzaezelX 2 anos atrás
pai
commit
80437b3515
1 arquivos alterados com 11 adições e 11 exclusões
  1. 11 11
      Engine/lib/CMakeLists.txt

+ 11 - 11
Engine/lib/CMakeLists.txt

@@ -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)