From 7eb927e82f815eae019bece4f7ac321944614793 Mon Sep 17 00:00:00 2001 From: leonarski_f Date: Sat, 20 Jun 2026 07:40:56 +0200 Subject: [PATCH] CMake: Ensure static ZLIB (must be before FIND_PACKAGE) --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 92702d72..4da0a03a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,10 +14,10 @@ SET(JFJOCH_USE_CUDA ON CACHE BOOL "Compile Jungfraujoch with CUDA") SET(JFJOCH_VIEWER_BUILD OFF CACHE BOOL "Compile Jungfraujoch viewer") SET(JFJOCH_VIEWER_ONLY OFF CACHE BOOL "Compile only jfjoch_viewer and its dependencies") -FIND_PACKAGE(ZLIB REQUIRED) - SET (ZLIB_USE_STATIC_LIBS TRUE) +FIND_PACKAGE(ZLIB REQUIRED) + OPTION(SLS9 "Build with sls_detector_package v9.2.0" OFF) SET(BUILD_SHARED_LIBS OFF)