diff options
author | Brad King <brad.king@kitware.com> | 2003-10-30 21:12:09 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-10-30 21:12:09 (GMT) |
commit | 7ce0e4c576e1c9da0d35c323924d44a44bdc2fab (patch) | |
tree | 725b437ea686559cb39d175e44166dbefcc81b50 /Source/cmake.cxx | |
parent | fc689df5d9329115ecf5e74f52a575f657b7a0c0 (diff) | |
download | CMake-7ce0e4c576e1c9da0d35c323924d44a44bdc2fab.zip CMake-7ce0e4c576e1c9da0d35c323924d44a44bdc2fab.tar.gz CMake-7ce0e4c576e1c9da0d35c323924d44a44bdc2fab.tar.bz2 |
BUG#313: Improving error message when no CMakeLists.txt file is found in the source tree.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index cb442c2..cf713a9 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; } |