fix link error on macOS Big Sur 11.01

Follow lib removed by Apple
1. /usr/lib/libz.dylib
2. /usr/lib/libiconv.dylib
This commit is contained in:
halx99 2020-12-02 21:59:57 -08:00
parent b911741252
commit 5056eb9ef2
1 changed files with 4 additions and 2 deletions

View File

@ -81,6 +81,8 @@ macro(cocos2dx_depend)
find_library(CORE_GRAPHICS_LIBRARY CoreGraphics)
find_library(AV_FOUNDATION_LIBRARY AVFoundation)
find_library(WEBKIT_LIBRARY WebKit)
find_library(ZLIB z)
find_library(ICONVLIB iconv)
list(APPEND PLATFORM_SPECIFIC_LIBS
${UIKIT_LIBRARY}
${OPENGLES_LIBRARY}
@ -93,8 +95,8 @@ macro(cocos2dx_depend)
${AV_FOUNDATION_LIBRARY}
${WEBKIT_LIBRARY}
${COCOS_APPLE_LIBS}
"/usr/lib/libz.dylib"
"/usr/lib/libiconv.dylib"
${ZLIB}
${ICONVLIB}
)
endif()
endif()