diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2022-03-25 15:55:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-25 15:55:58 (GMT) |
commit | 85b4da0b3c97ca929016b8ef790655618632074f (patch) | |
tree | c30f78211daa670455c0cf1c3c83b293297587de /config/cmake | |
parent | dca04fef2a06a962c9e46ac94fe1fed32b8298b9 (diff) | |
download | hdf5-85b4da0b3c97ca929016b8ef790655618632074f.zip hdf5-85b4da0b3c97ca929016b8ef790655618632074f.tar.gz hdf5-85b4da0b3c97ca929016b8ef790655618632074f.tar.bz2 |
Change ENV to CMake var #1520 (#1521)
Diffstat (limited to 'config/cmake')
-rw-r--r-- | config/cmake/HDF5_Examples.cmake.in | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/config/cmake/HDF5_Examples.cmake.in b/config/cmake/HDF5_Examples.cmake.in index 5febe07..e8bdf03 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}") |