diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2023-11-02 12:54:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-02 12:54:32 (GMT) |
commit | 528a8e7f46a2adc9b70e47eb7166c385d36220e8 (patch) | |
tree | 936f32012b2ad61286e1de743bb2abd41873ae63 /config/cmake/examples/HDF5_Examples.cmake.in | |
parent | 90893d28c2f2a795facba1e20eb99addae007f2d (diff) | |
download | hdf5-528a8e7f46a2adc9b70e47eb7166c385d36220e8.zip hdf5-528a8e7f46a2adc9b70e47eb7166c385d36220e8.tar.gz hdf5-528a8e7f46a2adc9b70e47eb7166c385d36220e8.tar.bz2 |
Sync CMake changes from develop (#3811)
Guard test dirs with HDF5_EXTERNALLY_CONFIGURED
Add toolchain support to examples testing
Diffstat (limited to 'config/cmake/examples/HDF5_Examples.cmake.in')
-rw-r--r-- | config/cmake/examples/HDF5_Examples.cmake.in | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/config/cmake/examples/HDF5_Examples.cmake.in b/config/cmake/examples/HDF5_Examples.cmake.in index d77c16d..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 @@ -62,11 +63,6 @@ if(NOT DEFINED CTEST_SOURCE_NAME) set(CTEST_SOURCE_NAME "HDF5Examples") endif() -if(NOT DEFINED HDF_LOCAL) - set(CDASH_LOCAL "NO") -else() - set(CDASH_LOCAL "YES") -endif() if(NOT DEFINED CTEST_SITE) set(CTEST_SITE "local") endif() @@ -100,10 +96,13 @@ else() endif() ### default HDF5_PLUGIN_PATH to where the filter libraries are located set(ENV{HDF5_PLUGIN_PATH} "${INSTALLDIR}/lib/plugin") -if(${CDASH_LOCAL}) - set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DCDASH_LOCAL:BOOL=ON") -endif() 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 |