Only find zlib if it has not already been found. (#169)

This commit is contained in:
Matthew Albrecht 2020-03-26 11:39:51 -05:00 committed by GitHub
parent dffa759f71
commit da36856d85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -200,7 +200,9 @@ if (USE_TLS AND USE_MBED_TLS)
endif()
endif()
find_package(ZLIB)
if (NOT ZLIB_FOUND)
find_package(ZLIB)
endif()
if (ZLIB_FOUND)
include_directories(${ZLIB_INCLUDE_DIRS})
target_link_libraries(ixwebsocket ${ZLIB_LIBRARIES})