From bd83196971560cd64463e1793559cffe0dd96523 Mon Sep 17 00:00:00 2001 From: Dennis Heimbigner Date: Sun, 29 Sep 2024 15:38:11 -0600 Subject: [PATCH] cmake1 --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7fdfde3e16..ee4d288770 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -660,10 +660,11 @@ endif() if(NOT DEFINED HDF5_PLUGIN_PATH OR ${HDF5_PLUGIN_PATH} STREQUAL "") if(ISMSVC OR ISMINGW) string(REPLACE "\\" "/" AUP "$ENV{"ALLUSERSPROFILE"}") - HDF5_PLUGIN_PATH="${AUP}/hdfd5/lib/plugin" + set(HDF5_PLUGIN_PATH "${AUP}/hdfd5/lib/plugin") else() - HDF5_PLUGIN_PATH="/usr/local/hdf5/lib/plugin" + set(HDF5_PLUGIN_PATH "/usr/local/hdf5/lib/plugin") endif() + set(ENV{HDF5_PLUGIN_PATH} "${HDF5_PLUGIN_PATH}") endif() # The --with-plugin-dir gives the user control of the plugin