Fix zlib dependencies and CMAKE_MODULE_PATH forwarding

This commit is contained in:
tamasmeszaros 2019-12-11 13:51:16 +01:00
parent c91046925a
commit 4a4d8b4e26
7 changed files with 102 additions and 30 deletions

View file

@ -7,7 +7,10 @@ else ()
set(TBB_MINGW_WORKAROUND "")
endif ()
find_package(ZLIB REQUIRED)
find_package(ZLIB QUIET)
if (NOT ZLIB_FOUND)
include(ZLIB/ZLIB.cmake)
endif ()
ExternalProject_Add(dep_tbb
EXCLUDE_FROM_ALL 1