summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2022-03-24 21:56:06 (GMT)
committerGitHub <noreply@github.com>2022-03-24 21:56:06 (GMT)
commit25ef608e2f1678c04a81b11ed9443768cdbd9dbd (patch)
tree758d138c5b681c1f6eb0b42c1d8db1060bbbf7d5 /config
parent7d9b850574453bf7cff91350ea5fa6e657748644 (diff)
downloadhdf5-25ef608e2f1678c04a81b11ed9443768cdbd9dbd.zip
hdf5-25ef608e2f1678c04a81b11ed9443768cdbd9dbd.tar.gz
hdf5-25ef608e2f1678c04a81b11ed9443768cdbd9dbd.tar.bz2
Change ENV to CMake var (#1520)
* Change ENV to CMake var * Fix typo deletion * Fix typo
Diffstat (limited to 'config')
-rw-r--r--config/cmake/HDF5_Examples.cmake.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/config/cmake/HDF5_Examples.cmake.in b/config/cmake/HDF5_Examples.cmake.in
index 9ff9b6f..795399e 100644
--- a/config/cmake/HDF5_Examples.cmake.in
+++ b/config/cmake/HDF5_Examples.cmake.in
@@ -81,14 +81,13 @@ set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DSITE:STRING=${CTEST_SITE} -DBUILDN
#endif()
###############################################################################################################
+set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ROOT:PATH=${INSTALLDIR}")
if(WIN32)
set(SITE_OS_NAME "Windows")
- set(ENV{HDF5_ROOT} "${INSTALLDIR}")
set(CTEST_BINARY_NAME ${CTEST_SOURCE_NAME}\\build)
set(CTEST_SOURCE_DIRECTORY "${CTEST_DASHBOARD_ROOT}\\${CTEST_SOURCE_NAME}")
set(CTEST_BINARY_DIRECTORY "${CTEST_DASHBOARD_ROOT}\\${CTEST_BINARY_NAME}")
else()
- set(ENV{HDF5_ROOT} "${INSTALLDIR}")
set(ENV{LD_LIBRARY_PATH} "${INSTALLDIR}/lib")
set(CTEST_BINARY_NAME ${CTEST_SOURCE_NAME}/build)
set(CTEST_SOURCE_DIRECTORY "${CTEST_DASHBOARD_ROOT}/${CTEST_SOURCE_NAME}")