浏览代码

* BugFix: Correct the inability to build on MacOS due to differing target names on MacOS.

Robert MacGregor 3 年之前
父节点
当前提交
ba7082bea1
共有 1 个文件被更改,包括 7 次插入1 次删除
  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()