From 0263e58ad483421b3515e8f24158981f2c5e05fc Mon Sep 17 00:00:00 2001 From: Vollstrecker Date: Thu, 26 Dec 2024 14:03:04 +0100 Subject: [PATCH] CMake: Prevent a 32-bit minizip build. --- contrib/minizip/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/minizip/CMakeLists.txt b/contrib/minizip/CMakeLists.txt index e5999518..766efb90 100644 --- a/contrib/minizip/CMakeLists.txt +++ b/contrib/minizip/CMakeLists.txt @@ -4,6 +4,11 @@ project(minizip VERSION 1.0.0 LANGUAGES C) +if(CMAKE_SIZEOF_VOID_P LESS 8) + message(WARNING "libminizip needs 64bit - stopping here") + return() +endif(CMAKE_SIZEOF_VOID_P LESS 8) + option(MINIZIP_BUILD_SHARED "Enable building zlib shared library" ON) option(MINIZIP_BUILD_STATIC "Enable building zlib static library" ON) option(MINIZIP_BUILD_TESTING "Enable testing of minizip" ON)