Skip to content

Commit

Permalink
don't link zlib if we didn't find it
Browse files Browse the repository at this point in the history
  • Loading branch information
wez committed Dec 6, 2020
1 parent c41170d commit 2aa76ad
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,12 @@ add_executable(
${sources}
)

target_link_libraries(
AtomicParsley
${ZLIB_LIBRARIES}
)
if(ZLIB_FOUND)
target_link_libraries(
AtomicParsley
${ZLIB_LIBRARIES}
)
endif()

if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
target_link_libraries(
Expand Down

0 comments on commit 2aa76ad

Please sign in to comment.