Explorar el Código

Merge pull request #681 from Ragora/bugfix-macos-builds

BugFix: Correct the inability to build on MacOS
Brian Roberts hace 3 años
padre
commit
31c8d3ce3a
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  1. 7 1
      Tools/CMake/torque3d.cmake

+ 7 - 1
Tools/CMake/torque3d.cmake

@@ -984,5 +984,11 @@ if(TORQUE_SFX_OPENAL AND WIN32)
 endif()
 
 if(TORQUE_SDL)
-    set_target_properties(SDL2 PROPERTIES FOLDER ${TORQUE_LIBS_FOLDER_NAME})
+    # Apple config has slightly different target names
+    if (APPLE)
+        set_target_properties(SDL2main PROPERTIES FOLDER ${TORQUE_LIBS_FOLDER_NAME})
+        set_target_properties(SDL2-static PROPERTIES FOLDER ${TORQUE_LIBS_FOLDER_NAME})
+    else()
+        set_target_properties(SDL2 PROPERTIES FOLDER ${TORQUE_LIBS_FOLDER_NAME})
+    endif()
 endif()