summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2022-03-26 19:44:45 (GMT)
committerGitHub <noreply@github.com>2022-03-26 19:44:45 (GMT)
commit5f0fc0396645311b304f51a2f7e8b654e1eea920 (patch)
tree841882aebdf4e2d1a0bd019f93a2c18a2ea2b18f /config
parent772d2e498e085d57a7fb5368ebaaa51363823ba1 (diff)
downloadhdf5-5f0fc0396645311b304f51a2f7e8b654e1eea920.zip
hdf5-5f0fc0396645311b304f51a2f7e8b654e1eea920.tar.gz
hdf5-5f0fc0396645311b304f51a2f7e8b654e1eea920.tar.bz2
Change ENV to CMake var #1520 (#1522)
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 70b0bff..0e7f9f0 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}")