mirror of https://github.com/axmolengine/axmol.git
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:
parent
b911741252
commit
5056eb9ef2
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue