From c14a2f551d7fa0ca8ca4a0a002867e41d76f66b8 Mon Sep 17 00:00:00 2001 From: Kai Zhao Date: Wed, 18 Feb 2026 20:45:23 -0500 Subject: [PATCH] fix: propagate HDF5_IS_PARALLEL to parent scope for SZ3Config Ensures @HDF5_IS_PARALLEL@ is correctly substituted in SZ3Config.cmake.in when configure_package_config_file runs in the parent CMakeLists.txt scope. --- tools/H5Z-SZ3/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/H5Z-SZ3/CMakeLists.txt b/tools/H5Z-SZ3/CMakeLists.txt index cc3db384..6776d011 100644 --- a/tools/H5Z-SZ3/CMakeLists.txt +++ b/tools/H5Z-SZ3/CMakeLists.txt @@ -21,6 +21,7 @@ if (${HDF5_IS_PARALLEL}) target_link_libraries(hdf5sz3 PUBLIC MPI::MPI_CXX) endif () +set(HDF5_IS_PARALLEL ${HDF5_IS_PARALLEL} PARENT_SCOPE) target_include_directories(hdf5sz3 PUBLIC