summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-09-21 15:42:40 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-09-21 15:42:40 (GMT)
commit53d9d84f6b71be458dbe9c191177aa2b854985ea (patch)
treec1ff0722d56fa853553982c34604fe3f4716123c /Source
parent6a72bffaf4307da73bec16f0bfa8bccd03ea439f (diff)
downloadCMake-53d9d84f6b71be458dbe9c191177aa2b854985ea.zip
CMake-53d9d84f6b71be458dbe9c191177aa2b854985ea.tar.gz
CMake-53d9d84f6b71be458dbe9c191177aa2b854985ea.tar.bz2
STYLE: improved error message for the case that neither FindFoo.cmake nor
FooConfig.cmake were found Alex
Diffstat (limited to 'Source')
-rw-r--r--Source/cmFindPackageCommand.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx
index 8e30cd4..1f534a5 100644
--- a/Source/cmFindPackageCommand.cxx
+++ b/Source/cmFindPackageCommand.cxx
@@ -222,9 +222,12 @@ bool cmFindPackageCommand::InitialPass(std::vector<std::string> const& args)
else if(!quiet || required)
{
cmOStringStream e;
- e << this->Variable << " is not set. It must be set to the directory "
- << "containing " << this->Config << " in order to use "
- << this->Name << ".";
+ e << "FIND_PACKAGE could not find Find" << this->Name
+ << ".cmake nor config file " << this->Config << ".\n"
+ << "Adjust CMAKE_MODULE_PATH to find Find" << this->Name
+ << ".cmake or set " << this->Variable
+ << "\nto the directory containing " << this->Config
+ << " in order to use " << this->Name << ".";
cmSystemTools::Error(e.str().c_str());
if(required)
{