Skip to content

Commit 2aa76ad

Browse files
committed
don't link zlib if we didn't find it
1 parent c41170d commit 2aa76ad

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

CMakeLists.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,12 @@ add_executable(
7373
${sources}
7474
)
7575

76-
target_link_libraries(
77-
AtomicParsley
78-
${ZLIB_LIBRARIES}
79-
)
76+
if(ZLIB_FOUND)
77+
target_link_libraries(
78+
AtomicParsley
79+
${ZLIB_LIBRARIES}
80+
)
81+
endif()
8082

8183
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
8284
target_link_libraries(

0 commit comments

Comments
 (0)