STYLE: improved error message for the case that neither FindFoo.cmake nor
FooConfig.cmake were found Alex
This commit is contained in:
parent
6a72bffaf4
commit
53d9d84f6b
|
@ -222,9 +222,12 @@ bool cmFindPackageCommand::InitialPass(std::vector<std::string> const& args)
|
||||||
else if(!quiet || required)
|
else if(!quiet || required)
|
||||||
{
|
{
|
||||||
cmOStringStream e;
|
cmOStringStream e;
|
||||||
e << this->Variable << " is not set. It must be set to the directory "
|
e << "FIND_PACKAGE could not find Find" << this->Name
|
||||||
<< "containing " << this->Config << " in order to use "
|
<< ".cmake nor config file " << this->Config << ".\n"
|
||||||
<< this->Name << ".";
|
<< "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());
|
cmSystemTools::Error(e.str().c_str());
|
||||||
if(required)
|
if(required)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue