diff options
author | Ken Martin <ken.martin@kitware.com> | 2005-02-22 15:42:49 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2005-02-22 15:42:49 (GMT) |
commit | 4baa085a1a3a09aa84dd347f1995c7ae6504bfc4 (patch) | |
tree | 18b5ff3510e9b29687ebff9008f025027ebe142e | |
parent | 39af9ee1e496db77849015541f687897ed819a56 (diff) | |
download | CMake-4baa085a1a3a09aa84dd347f1995c7ae6504bfc4.zip CMake-4baa085a1a3a09aa84dd347f1995c7ae6504bfc4.tar.gz CMake-4baa085a1a3a09aa84dd347f1995c7ae6504bfc4.tar.bz2 |
BUG: better error handling
-rw-r--r-- | Source/cmCTest.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index 82c8fc7..3a65f77 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -1806,6 +1806,19 @@ int cmCTest::RunCMakeAndTest(std::string* outstring) double timeout = m_TimeOut; int retVal = 0; + // if the generator and make program are not specified then it is an error + if (!m_BuildGenerator.size() || !m_BuildMakeProgram.size()) + { + if(outstring) + { + *outstring = + "--build-and-test requires that both the generator and makeprogram " + "be provided using the --build-generator and --build-makeprogram " + "command line options. "; + } + return 1; + } + // default to the build type of ctest itself if(m_ConfigType.size() == 0) { |