File tree 1 file changed +10
-5
lines changed
1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -1039,11 +1039,16 @@ if (DEPS_DIR AND (BUILD_CLIENT OR BUILD_TTY_CLIENT OR BUILD_SERVER OR BUILD_DUMM
1039
1039
1040
1040
# Mac requires some libraries from external_deps
1041
1041
if (APPLE )
1042
- add_custom_command (TARGET runtime_deps PRE_BUILD
1043
- COMMAND ${CMAKE_COMMAND} -E copy_directory
1044
- ${DEPS_DIR} /SDL2.framework
1045
- ${FULL_OUTPUT_DIR} /SDL2.framework
1046
- )
1042
+ file (GLOB RUNTIME_FRAMEWORKS ${DEPS_DIR} /lib/*.framework )
1043
+ foreach (RUNTIME_FRAMEWORK ${RUNTIME_FRAMEWORKS} )
1044
+ get_filename_component (RUNTIME_FRAMEWORK_NAME ${RUNTIME_FRAMEWORK} NAME )
1045
+ add_custom_command (TARGET runtime_deps PRE_BUILD
1046
+ COMMAND ${CMAKE_COMMAND} -E copy_directory
1047
+ ${RUNTIME_FRAMEWORK}
1048
+ ${FULL_OUTPUT_DIR} /${RUNTIME_FRAMEWORK_NAME}
1049
+ )
1050
+ endforeach ()
1051
+
1047
1052
file (GLOB RUNTIME_LIBS ${DEPS_DIR} /lib/*.dylib)
1048
1053
foreach (RUNTIME_LIB ${RUNTIME_LIBS} )
1049
1054
add_custom_command (TARGET runtime_deps PRE_BUILD
You can’t perform that action at this time.
0 commit comments