diff options
Diffstat (limited to 'Source/cmEnableTestingCommand.cxx')
-rw-r--r-- | Source/cmEnableTestingCommand.cxx | 9 |
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()); |