diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-03-06 13:51:08 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-03-06 13:51:08 (GMT) |
commit | 8248953df197e5c6c01c501be3fb8f7c1dcb9b0b (patch) | |
tree | aa2b9502f8eacbeab6ab65c6fa41505aa9b8a36d /Source/cmCTest.cxx | |
parent | 70b01d45067c2429ee2a7c0acc6778235cc7d3bb (diff) | |
download | CMake-8248953df197e5c6c01c501be3fb8f7c1dcb9b0b.zip CMake-8248953df197e5c6c01c501be3fb8f7c1dcb9b0b.tar.gz CMake-8248953df197e5c6c01c501be3fb8f7c1dcb9b0b.tar.bz2 |
COMP: Remove warning and fix the logic
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r-- | Source/cmCTest.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index fa6c4ef..d33fd7a 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -694,7 +694,7 @@ int cmCTest::SubmitResults() ofs << " Submission succesfull" << std::endl; return 1; } - else + else if ( m_DartConfiguration["DropMethod"] == "scp" ) { std::string url; if ( m_DartConfiguration["DropSiteUser"].size() > 0 ) @@ -713,6 +713,11 @@ int cmCTest::SubmitResults() std::cout << " Submission successfull" << std::endl; ofs << " Submission succesfull" << std::endl; } + else + { + std::cout << " Unknown submission method: \"" << m_DartConfiguration["DropMethod"] << "\"" << std::endl; + return 0; + } return 0; } |