diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-10-07 01:25:30 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-10-07 01:25:30 (GMT) |
commit | fba1ca0b6858bf4a036fb8f627d5b8b317831823 (patch) | |
tree | b8b4e2529b031420f47efa6e11a5d58f497096d6 /Source/ctest.cxx | |
parent | 51f399ca294d2c78c49b56a4ce5acadd62966b7c (diff) | |
download | CMake-fba1ca0b6858bf4a036fb8f627d5b8b317831823.zip CMake-fba1ca0b6858bf4a036fb8f627d5b8b317831823.tar.gz CMake-fba1ca0b6858bf4a036fb8f627d5b8b317831823.tar.bz2 |
Fix update so that it actually updates the source directory,
Diffstat (limited to 'Source/ctest.cxx')
-rw-r--r-- | Source/ctest.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/ctest.cxx b/Source/ctest.cxx index c912010..7495141 100644 --- a/Source/ctest.cxx +++ b/Source/ctest.cxx @@ -280,12 +280,20 @@ void ctest::UpdateDirectory() return; } + std::string sourceDirectory = m_DartConfiguration["SourceDirectory"]; + if ( cvsOptions.size() == 0 ) + { + std::cerr << "Cannot find SourceDirectory key in the DartConfiguration.tcl" << std::endl; + return; + } + std::string command = cvsCommand + " update " + cvsOptions; std::string output; int retVal; bool res = cmSystemTools::RunCommand(command.c_str(), output, - retVal, 0, true); + retVal, sourceDirectory.c_str(), + true); if (! res || retVal ) { std::cerr << "Error(s) when updating the project" << std::endl; |