summaryrefslogtreecommitdiffstats
path: root/Source/cmEnableTestingCommand.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-04-01 19:57:55 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-04-01 19:57:55 (GMT)
commit7acfc4dc3cd8c5865ff55ed94e210776cff6876b (patch)
treef68de1f9e3885b48f37857dfaf3b5120ca93072d /Source/cmEnableTestingCommand.cxx
parenteca18a2e9fcd9a33dce6d87bcca86de236598ae1 (diff)
downloadCMake-7acfc4dc3cd8c5865ff55ed94e210776cff6876b.zip
CMake-7acfc4dc3cd8c5865ff55ed94e210776cff6876b.tar.gz
CMake-7acfc4dc3cd8c5865ff55ed94e210776cff6876b.tar.bz2
ENH: Start adding support for CTest testfiles
Diffstat (limited to 'Source/cmEnableTestingCommand.cxx')
-rw-r--r--Source/cmEnableTestingCommand.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmEnableTestingCommand.cxx b/Source/cmEnableTestingCommand.cxx
index 3662596..9a97083 100644
--- a/Source/cmEnableTestingCommand.cxx
+++ b/Source/cmEnableTestingCommand.cxx
@@ -37,7 +37,14 @@ void cmEnableTestingCommand::CreateDartTestfileForMakefile(cmMakefile *mf)
std::string fname;
fname = mf->GetStartOutputDirectory();
fname += "/";
- fname += "DartTestfile.txt";
+ if ( m_Makefile->IsOn("DART_ROOT") )
+ {
+ fname += "DartTestfile.txt";
+ }
+ else
+ {
+ fname += "CTestTestfile.cmake";
+ }
cmSystemTools::MakeDirectory(mf->GetStartOutputDirectory());