Merge topic 'find_package-report-CONFIGS-error'
b3f9fe4
find_package: print error if an invalid CONFIGS name is used
This commit is contained in:
commit
2fb1df42a2
|
@ -538,6 +538,7 @@ bool cmFindPackageCommand
|
|||
e << "given CONFIGS option followed by invalid file name \""
|
||||
<< args[i] << "\". The names given must be file names without "
|
||||
<< "a path and with a \".cmake\" extension.";
|
||||
this->SetError(e.str().c_str());
|
||||
return false;
|
||||
}
|
||||
this->Configs.push_back(args[i]);
|
||||
|
|
Loading…
Reference in New Issue