From 8969613a5a0810b761371613cd7563161a407a86 Mon Sep 17 00:00:00 2001 From: tamasmeszaros Date: Thu, 7 May 2020 12:46:37 +0200 Subject: [PATCH] Fix cmake error on unixes --- deps/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/deps/CMakeLists.txt b/deps/CMakeLists.txt index 06ab0fa652..74bf6eb53e 100644 --- a/deps/CMakeLists.txt +++ b/deps/CMakeLists.txt @@ -152,8 +152,10 @@ include(MPFR/MPFR.cmake) include(CGAL/CGAL.cmake) include(wxWidgets/wxWidgets.cmake) -add_dependencies(dep_blosc ${ZLIB_PKG}) -add_dependencies(dep_openexr ${ZLIB_PKG}) +if (ZLIB_PKG) + add_dependencies(dep_blosc ${ZLIB_PKG}) + add_dependencies(dep_openexr ${ZLIB_PKG}) +endif () if (MSVC)