Only include Dart when push to cdash is enabled

It's only used for cdash submission
This commit is contained in:
Nyall Dawson 2025-01-31 09:37:00 +10:00
parent 1bdce04cba
commit 3e50833349

View File

@ -695,8 +695,10 @@ if (ENABLE_TESTS)
set (PUSH_TO_CDASH FALSE CACHE BOOL "Determines whether test results should be pushed to CDASH site")
set(QT_USE_QTTEST TRUE)
enable_testing()
# Adds some testing specific build targets e.g. make Experimental
include(Dart)
if (PUSH_TO_CDASH)
# Adds some testing specific build targets e.g. make Experimental
include(Dart)
endif()
# Additional test configuration options e.g. max upload size of test report
configure_file(
"${CMAKE_SOURCE_DIR}/cmake_templates/CTestCustom.cmake.in"