diff --git a/mac/CMakeLists.txt b/mac/CMakeLists.txt index e7c79b83a..48c0099bb 100644 --- a/mac/CMakeLists.txt +++ b/mac/CMakeLists.txt @@ -83,7 +83,7 @@ set_target_properties(GLESv2 PROPERTIES add_library(SDL2 SHARED IMPORTED GLOBAL) set_target_properties(SDL2 PROPERTIES - IMPORTED_LOCATION ${CMAKE_CURRENT_LIST_DIR}/libs/libSDL2-2.0.0.dylib + IMPORTED_LOCATION ${CMAKE_CURRENT_LIST_DIR}/libs/libSDL2.a ) set(se_libs_name) @@ -211,6 +211,9 @@ list(APPEND CC_EXTERNAL_LIBS webp curl SDL2 + # sdl2 depends on the following two libraries. + "-framework IOKit" + "-framework Carbon" ${glslang_libs_name} ${spirv-cross_libs_name} ${tbb_libs_name} diff --git a/mac/libs/libSDL2-2.0.0.dylib b/mac/libs/libSDL2-2.0.0.dylib deleted file mode 100644 index 89e6db52a..000000000 Binary files a/mac/libs/libSDL2-2.0.0.dylib and /dev/null differ diff --git a/mac/libs/libSDL2.a b/mac/libs/libSDL2.a new file mode 100644 index 000000000..c2e5d8054 Binary files /dev/null and b/mac/libs/libSDL2.a differ