Skip to content

Commit 6d14112

Browse files
authored
fix zlib (#20634)
1 parent c78c58e commit 6d14112

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmake/Modules/CocosConfigDepend.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ macro(cocos2dx_depend)
6969
find_library(CORE_GRAPHICS_LIBRARY CoreGraphics)
7070
find_library(AV_FOUNDATION_LIBRARY AVFoundation)
7171
find_library(WEBKIT_LIBRARY WebKit)
72+
find_library(ZLIB_LIBRARY z)
73+
find_library(ICONV_LIBRARY iconv)
7274
list(APPEND PLATFORM_SPECIFIC_LIBS
7375
${UIKIT_LIBRARY}
7476
${OPENGLES_LIBRARY}
@@ -81,8 +83,8 @@ macro(cocos2dx_depend)
8183
${AV_FOUNDATION_LIBRARY}
8284
${WEBKIT_LIBRARY}
8385
${COCOS_APPLE_LIBS}
84-
"/usr/lib/libz.dylib"
85-
"/usr/lib/libiconv.dylib"
86+
${ZLIB_LIBRARY}
87+
${ICONV_LIBRARY}
8688
)
8789
endif()
8890
endif()

0 commit comments

Comments
 (0)