Skip to content

Commit 1e8f2ca

Browse files
committed
build: workaround hook for zlib dependency
Until CMake 3.15, dependency tracking is not properly possible due to custom commands for linking. Provide an escape hatch in the form is a variable that can be setup to force the linking of zlib. We do not search for zlib, simply allow the user specify a magic variable to permit them to inject the linking.
1 parent 84d6a68 commit 1e8f2ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ add_swift_library(FoundationNetworking
327327
${Foundation_INTERFACE_LIBRARIES}
328328
${CFURLSessionInterface_LIBRARIES}
329329
${CURL_LIBRARIES}
330+
${ZLIB_LIBRARY}
330331
${Foundation_RPATH}
331332
${WORKAROUND_SR9138}
332333
${WORKAROUND_SR9995}

0 commit comments

Comments
 (0)