From 81395a66a4ef4fb3b6a3e896077abfc0192198a7 Mon Sep 17 00:00:00 2001 From: "Robin E.R. Davies" Date: Wed, 17 Jun 2026 11:22:32 -0400 Subject: [PATCH] Remove zlib and sqllite install dependencies. (use static libs) --- modules/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/CMakeLists.txt b/modules/CMakeLists.txt index bf4c571..5769cbb 100644 --- a/modules/CMakeLists.txt +++ b/modules/CMakeLists.txt @@ -1,6 +1,8 @@ cmake_minimum_required(VERSION 3.16.0) # Prevent installation of SQLite built components. (we use the .a library files directly) +option(SQLITECPP_INSTALL "Enables the install target." OFF) +option(BUILD_SHARED_LIBS "Build shared libraries (DLLs)." OFF) add_subdirectory("SQLiteCpp" EXCLUDE_FROM_ALL) @@ -25,7 +27,7 @@ option(BUILD_REGRESS "Build regression tests" OFF) option(BUILD_OSSFUZZ "Build fuzzers for ossfuzz" OFF) option(BUILD_EXAMPLES "Build examples" OFF) option(BUILD_DOC "Build documentation" OFF) -# Ensure BUILD_SHARED_LIBS is ON for libzip (SQLiteCpp may have set it OFF) -set(BUILD_SHARED_LIBS ON CACHE BOOL "Build shared libraries (.so) instead of static ones (.a)" FORCE) + +option(LIBZIP_DO_INSTALL "Install libzip and the related files" ON) add_subdirectory("libzip")