From 7ce0e4c576e1c9da0d35c323924d44a44bdc2fab Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 30 Oct 2003 16:12:09 -0500 Subject: [PATCH] BUG#313: Improving error message when no CMakeLists.txt file is found in the source tree. --- Source/cmake.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Source/cmake.cxx b/Source/cmake.cxx index cb442c2cb..cf713a969 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -845,10 +845,11 @@ int cmake::DoPreConfigureChecks() srcList += "/CMakeLists.txt"; if(!cmSystemTools::FileExists(srcList.c_str())) { - cmSystemTools::Error( - "The source directory does not appear to contain CMakeLists.txt.\n" - "Specify --help for usage, or press the help button on the CMake GUI."); - abort(); + cmOStringStream err; + err << "The source directory \"" << this->GetHomeDirectory() + << "\" does not appear to contain CMakeLists.txt.\n" + << "Specify --help for usage, or press the help button on the CMake GUI."; + cmSystemTools::Error(err.str().c_str()); return -2; }