Attempt to fix building of universal exe
[openjpeg.git] / CMakeLists.txt
index e8c7c99fbefa29f35e650036861b9f79d6c50677..a223fb31a768ca4fb80e01edd81e507f71650704 100644 (file)
@@ -196,6 +196,9 @@ IF(NOT CURL_FOUND)
  SET(BUILD_JPIP OFF)
 ENDIF (NOT CURL_FOUND)
 
+# Try to find lib Z
+FIND_PACKAGE(ZLIB)
+
 IF(BUILD_CODEC OR BUILD_MJ2 OR BUILD_JPIP)
   OPTION(BUILD_THIRDPARTY "Build the thirdparty executables if it is needed" OFF)
   ADD_SUBDIRECTORY(thirdparty)