diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2023-11-01 12:15:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-01 12:15:19 (GMT) |
commit | a654b2c1c5670010e14d8fba6d287ce62c87169a (patch) | |
tree | 06d7c097fad284e468f58407c61931a1cecc931c /config/cmake/examples/HDF5_Examples.cmake.in | |
parent | f8ab865ce75821a2e24127b1d52ce3070980c298 (diff) | |
download | hdf5-a654b2c1c5670010e14d8fba6d287ce62c87169a.zip hdf5-a654b2c1c5670010e14d8fba6d287ce62c87169a.tar.gz hdf5-a654b2c1c5670010e14d8fba6d287ce62c87169a.tar.bz2 |
Use the current toolchain for examples as default (#3810)
Diffstat (limited to 'config/cmake/examples/HDF5_Examples.cmake.in')
-rw-r--r-- | config/cmake/examples/HDF5_Examples.cmake.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/config/cmake/examples/HDF5_Examples.cmake.in b/config/cmake/examples/HDF5_Examples.cmake.in index f45e1ed..2f3a649 100644 --- a/config/cmake/examples/HDF5_Examples.cmake.in +++ b/config/cmake/examples/HDF5_Examples.cmake.in @@ -29,6 +29,7 @@ set(CTEST_DASHBOARD_ROOT ${CTEST_SCRIPT_DIRECTORY}) #INSTALLDIR - HDF5 root folder #CTEST_CONFIGURATION_TYPE - Release, Debug, RelWithDebInfo #CTEST_SOURCE_NAME - name of source folder; HDF5Examples +#CTEST_TOOLCHAIN_FILE - name and path in source of toolchain file if(DEFINED CTEST_SCRIPT_ARG) # transform ctest script arguments of the form # script.ctest,var1=value1,var2=value2 @@ -96,6 +97,12 @@ endif() ### default HDF5_PLUGIN_PATH to where the filter libraries are located set(ENV{HDF5_PLUGIN_PATH} "${INSTALLDIR}/lib/plugin") set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_PACKAGE_NAME:STRING=@HDF5_PACKAGE@@HDF_PACKAGE_EXT@") +### use a toolchain file (supported everywhere) #### +if(NOT DEFINED CTEST_TOOLCHAIN_FILE) + set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DCMAKE_TOOLCHAIN_FILE:STRING=@CTEST_TOOLCHAIN_FILE@") +else() + set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DCMAKE_TOOLCHAIN_FILE:STRING=${CTEST_TOOLCHAIN_FILE}") +endif() ############################################################################################################### # For any comments please contact cdashhelp@hdfgroup.org |