CMake: Ensure static ZLIB (must be before FIND_PACKAGE)

This commit is contained in:
2026-06-20 07:40:56 +02:00
parent 1ae2e6869d
commit 7eb927e82f
+2 -2
View File
@@ -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)