aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVollstrecker <werner@vollstreckernet.de>2024-12-26 14:03:04 +0100
committerMark Adler <madler@alumni.caltech.edu>2025-01-31 20:01:41 -0800
commit0263e58ad483421b3515e8f24158981f2c5e05fc (patch)
treea33a7aceb8df1eaca120f2596154f52d5abab317
parent9d25fa340ef7dc35606ea3373b090e9d4e8267b9 (diff)
downloadzlib-0263e58ad483421b3515e8f24158981f2c5e05fc.tar.gz
zlib-0263e58ad483421b3515e8f24158981f2c5e05fc.tar.bz2
zlib-0263e58ad483421b3515e8f24158981f2c5e05fc.zip
CMake: Prevent a 32-bit minizip build.
-rw-r--r--contrib/minizip/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/minizip/CMakeLists.txt b/contrib/minizip/CMakeLists.txt
index e599951..766efb9 100644
--- a/contrib/minizip/CMakeLists.txt
+++ b/contrib/minizip/CMakeLists.txt
@@ -4,6 +4,11 @@ project(minizip
4 VERSION 1.0.0 4 VERSION 1.0.0
5 LANGUAGES C) 5 LANGUAGES C)
6 6
7if(CMAKE_SIZEOF_VOID_P LESS 8)
8 message(WARNING "libminizip needs 64bit - stopping here")
9 return()
10endif(CMAKE_SIZEOF_VOID_P LESS 8)
11
7option(MINIZIP_BUILD_SHARED "Enable building zlib shared library" ON) 12option(MINIZIP_BUILD_SHARED "Enable building zlib shared library" ON)
8option(MINIZIP_BUILD_STATIC "Enable building zlib static library" ON) 13option(MINIZIP_BUILD_STATIC "Enable building zlib static library" ON)
9option(MINIZIP_BUILD_TESTING "Enable testing of minizip" ON) 14option(MINIZIP_BUILD_TESTING "Enable testing of minizip" ON)