# Avoid linking the shared library of zlib Search ZLIB_ROOT first if it is
# Avoid linking the shared library of zlib Search ZLIB_ROOT first if it is
# set.
# set.
...
@@ -221,6 +217,7 @@ if(MSVC)
...
@@ -221,6 +217,7 @@ if(MSVC)
endif()
endif()
find_package(ZLIB QUIET)
find_package(ZLIB QUIET)
find_package(Threads)
if(NOT ZLIB_FOUND)
if(NOT ZLIB_FOUND)
message(FATAL_ERROR "The zlib development files were not found you this system, please install them and try again (hint: on debian/ubuntu use apt-get install zlib1g-dev)")
message(FATAL_ERROR "The zlib development files were not found you this system, please install them and try again (hint: on debian/ubuntu use apt-get install zlib1g-dev)")
...
@@ -464,75 +461,69 @@ else()
...
@@ -464,75 +461,69 @@ else()
unset(CIFPP_CACHE_DIR)
unset(CIFPP_CACHE_DIR)
endif()
endif()
# Avoid full installation in case we are not the top level target