summaryrefslogtreecommitdiffstats
path: root/Modules/Dart.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/Dart.cmake')
-rw-r--r--Modules/Dart.cmake13
1 files changed, 10 insertions, 3 deletions
diff --git a/Modules/Dart.cmake b/Modules/Dart.cmake
index 320e4eb..bdea621 100644
--- a/Modules/Dart.cmake
+++ b/Modules/Dart.cmake
@@ -302,9 +302,16 @@ IF(BUILD_TESTING)
# Use CTest
# configure files
- CONFIGURE_FILE(
- ${CMAKE_ROOT}/Modules/DartConfiguration.tcl.in
- ${PROJECT_BINARY_DIR}/CTestConfiguration.ini )
+
+ IF(CTEST_NEW_FORMAT)
+ CONFIGURE_FILE(
+ ${CMAKE_ROOT}/Modules/DartConfiguration.tcl.in
+ ${PROJECT_BINARY_DIR}/CTestConfiguration.ini )
+ ELSE(CTEST_NEW_FORMAT)
+ CONFIGURE_FILE(
+ ${CMAKE_ROOT}/Modules/DartConfiguration.tcl.in
+ ${PROJECT_BINARY_DIR}/DartConfiguration.tcl )
+ ENDIF(CTEST_NEW_FORMAT)
#
# Section 3: