From f5b4286e2289471f11e34c55618fec426c50848f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Del=20Pino?= <stephane.delpino44@gmail.com> Date: Fri, 17 Jan 2025 18:38:34 +0100 Subject: [PATCH] Fix compilation if HDF5 is explicitly deactivated --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8f484b039..4317cec4d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -289,7 +289,7 @@ if (PUGS_ENABLE_HDF5 MATCHES "^(AUTO|ON)$") set(PUGS_HAS_HDF5 ${HDF5_FOUND}) else() unset(HIGHFIVE_TARGET) - unset(HDF5_TARGET PkgConfig::HDF5) + unset(HDF5_TARGET) unset(PUGS_HAS_HDF5) endif() -- GitLab