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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HVeDQsU5a8AJUdJPgWevAK
This commit is contained in:
1 parent
659b5da52d
commit
a3afa099da
1 file changed
+2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user