diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2023-03-29 21:28:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-29 21:28:07 (GMT) |
commit | 32bc1b911933891f78809366f55e892639f42a2d (patch) | |
tree | afebe730ff99e14673b7beeac5b1c2d19d77b068 | |
parent | 278102ae798eb6f4662957926cfde9545404d0f2 (diff) | |
download | hdf5-32bc1b911933891f78809366f55e892639f42a2d.zip hdf5-32bc1b911933891f78809366f55e892639f42a2d.tar.gz hdf5-32bc1b911933891f78809366f55e892639f42a2d.tar.bz2 |
Check CMake version for correct option (#2650)
-rw-r--r-- | config/cmake/scripts/CTestScript.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/config/cmake/scripts/CTestScript.cmake b/config/cmake/scripts/CTestScript.cmake index b1f127a..fb9dd57 100644 --- a/config/cmake/scripts/CTestScript.cmake +++ b/config/cmake/scripts/CTestScript.cmake @@ -273,7 +273,11 @@ set (ENV{CI_MODEL} ${MODEL}) ## -- LOCAL_MEMCHECK_TEST executes the Valgrind testing ## -- LOCAL_COVERAGE_TEST executes code coverage process ## -------------------------- - ctest_start (${MODEL} GROUP ${MODEL}) + if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.16.0") + ctest_start (${MODEL} GROUP ${MODEL}) + else () + ctest_start (${MODEL} TRACK ${MODEL}) + endif () if (LOCAL_UPDATE) ctest_update (SOURCE "${CTEST_SOURCE_DIRECTORY}") endif () |