[cmake-commits] alex committed cmFindPackageCommand.cxx 1.24 1.25
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Sep 21 11:42:42 EDT 2007
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv22105
Modified Files:
cmFindPackageCommand.cxx
Log Message:
STYLE: improved error message for the case that neither FindFoo.cmake nor
FooConfig.cmake were found
Alex
Index: cmFindPackageCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmFindPackageCommand.cxx,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- cmFindPackageCommand.cxx 20 Aug 2007 12:49:21 -0000 1.24
+++ cmFindPackageCommand.cxx 21 Sep 2007 15:42:40 -0000 1.25
@@ -222,9 +222,12 @@
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)
{
More information about the Cmake-commits
mailing list