diff options
author | Vollstrecker <werner@vollstreckernet.de> | 2024-12-26 14:03:04 +0100 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2025-01-31 20:01:41 -0800 |
commit | 0263e58ad483421b3515e8f24158981f2c5e05fc (patch) | |
tree | a33a7aceb8df1eaca120f2596154f52d5abab317 | |
parent | 9d25fa340ef7dc35606ea3373b090e9d4e8267b9 (diff) | |
download | zlib-0263e58ad483421b3515e8f24158981f2c5e05fc.tar.gz zlib-0263e58ad483421b3515e8f24158981f2c5e05fc.tar.bz2 zlib-0263e58ad483421b3515e8f24158981f2c5e05fc.zip |
CMake: Prevent a 32-bit minizip build.
-rw-r--r-- | contrib/minizip/CMakeLists.txt | 5 |
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 | ||
7 | if(CMAKE_SIZEOF_VOID_P LESS 8) | ||
8 | message(WARNING "libminizip needs 64bit - stopping here") | ||
9 | return() | ||
10 | endif(CMAKE_SIZEOF_VOID_P LESS 8) | ||
11 | |||
7 | option(MINIZIP_BUILD_SHARED "Enable building zlib shared library" ON) | 12 | option(MINIZIP_BUILD_SHARED "Enable building zlib shared library" ON) |
8 | option(MINIZIP_BUILD_STATIC "Enable building zlib static library" ON) | 13 | option(MINIZIP_BUILD_STATIC "Enable building zlib static library" ON) |
9 | option(MINIZIP_BUILD_TESTING "Enable testing of minizip" ON) | 14 | option(MINIZIP_BUILD_TESTING "Enable testing of minizip" ON) |