From 5c749a68c0829fa82b6c20af6cf7401c43233f8b Mon Sep 17 00:00:00 2001
From: Bertrand Bellenot <bertrand.bellenot@cern.ch>
Date: Wed, 4 Oct 2017 09:33:54 +0200
Subject: [PATCH] Always use the built-in headers when builtin_zlib option is
 ON (not only on Windows)

---
 core/zip/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/zip/CMakeLists.txt b/core/zip/CMakeLists.txt
index ed2b746ff31..9090198bf12 100644
--- a/core/zip/CMakeLists.txt
+++ b/core/zip/CMakeLists.txt
@@ -21,7 +21,7 @@ Set(ZipOldSource
 
 # Depending on the system either the old and the new
 # or only the old compression is build
-if(MSVC AND builtin_zlib)
+if(builtin_zlib)
   set(ZLIB_HEADERS ${ZipNewHeaders} ${ZipOldHeaders})
 else()
   set(ZLIB_HEADERS ${ZipOldHeaders})
-- 
GitLab