From a3afa099dacd458dc43ff0c84ea52c2e65732a97 Mon Sep 17 00:00:00 2001 From: Filip Leonarski Date: Sun, 8 Nov 2026 10:17:23 +0100 Subject: [PATCH] CMake: zstd_VERSION for a Qt built with zstd A Qt6 built with zstd looks for it through its FindWrapZSTD, which takes our zstd::libzstd alias and then requires zstd_VERSION; the fetched zstd never sets it, so the viewer configure failed with "Qt6Core could not be found because dependency WrapZSTD could not be found". The version is the fetched one (1.5.7). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01HVeDQsU5a8AJUdJPgWevAK --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e5cb7c592..9e7e7f1fe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -430,6 +430,8 @@ FetchContent_MakeAvailable(libzmq) # resolved to the system copy at runtime. Point it at our static build. FetchContent_MakeAvailable(zstd) add_library(zstd::libzstd ALIAS libzstd_static) +# A Qt built with zstd finds this target in its FindWrapZSTD and then requires zstd_VERSION +SET(zstd_VERSION 1.5.7) IF (JFJOCH_PORTABLE_ONLY) # A portable build still needs hdf5/spdlog/httplib (JFJochReader uses httplib), and catch2 # for jfjoch_portable_test. Only sls_detector_package (detector) is not built here -- it does