summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-08-25 12:44:10 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-08-25 12:44:10 (GMT)
commitbfbf5afc16ed6e6567fd4cb81eba4a8789c3bace (patch)
tree0e3c064021c321033dc5314bf6902432b57c0d7a
parentded244d1a86ae17efee4dd3605efd1c10f6f3cd5 (diff)
downloadCMake-bfbf5afc16ed6e6567fd4cb81eba4a8789c3bace.zip
CMake-bfbf5afc16ed6e6567fd4cb81eba4a8789c3bace.tar.gz
CMake-bfbf5afc16ed6e6567fd4cb81eba4a8789c3bace.tar.bz2
ENH: produce better error message for missing variables in -S mode
-rw-r--r--Source/cmCTest.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index 855f059..7efe172 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -3701,7 +3701,14 @@ int cmCTest::RunConfigurationScript(const std::string& total_script_arg)
// make sure the required info is here
if (!srcDir || !binDir || !ctestCmd)
{
- cmSystemTools::Error("Some required settings in the configuration file were missing");
+ std::string message = "CTEST_SOURCE_DIRECTORY = ";
+ message += (srcDir) ? srcDir: "(Null)";
+ message += "\nCTEST_BINARY_DIRECTORY = ";
+ message += (srcDir) ? binDir: "(Null)";
+ message += "\nCTEST_CMAKE_COMMAND = ";
+ message += (ctestCmd) ? ctestCmd: "(Null)";
+ cmSystemTools::Error("Some required settings in the configuration file were missing:\n",
+ message.c_str());
return 4;
}