diff --git a/CMakeLists.txt b/CMakeLists.txt index 22ec270..af58e3e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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(