summaryrefslogtreecommitdiffstats
path: root/config/cmake/scripts
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2022-05-17 12:13:03 (GMT)
committerGitHub <noreply@github.com>2022-05-17 12:13:03 (GMT)
commite67e1f8cb66b90a1021c52e600b2ad661b00836f (patch)
tree398ab27ee039c47dbfc5f2239ef591f63f2619bf /config/cmake/scripts
parent13fbd8528436713d9244e282483f0f54e5319ba7 (diff)
downloadhdf5-e67e1f8cb66b90a1021c52e600b2ad661b00836f.zip
hdf5-e67e1f8cb66b90a1021c52e600b2ad661b00836f.tar.gz
hdf5-e67e1f8cb66b90a1021c52e600b2ad661b00836f.tar.bz2
Use windows ENV var for default install dir setting #1763 (#1767)
Diffstat (limited to 'config/cmake/scripts')
-rw-r--r--config/cmake/scripts/HDF5config.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/cmake/scripts/HDF5config.cmake b/config/cmake/scripts/HDF5config.cmake
index 70d05f0..daa902e 100644
--- a/config/cmake/scripts/HDF5config.cmake
+++ b/config/cmake/scripts/HDF5config.cmake
@@ -79,7 +79,7 @@ set (CTEST_CONFIGURATION_TYPE "$ENV{CMAKE_CONFIG_TYPE}")
if (NOT DEFINED INSTALLDIR)
if (WIN32)
- set (INSTALLDIR "C:/Program Files/HDF_Group/HDF5/${CTEST_SOURCE_VERSION}")
+ set (INSTALLDIR "%ProgramFiles%/HDF_Group/HDF5/${CTEST_SOURCE_VERSION}")
else ()
set (INSTALLDIR "${CTEST_SCRIPT_DIRECTORY}/HDF_Group/HDF5/${CTEST_SOURCE_VERSION}")
endif ()