Merge topic 'find_package-report-CONFIGS-error'

b3f9fe4 find_package: print error if an invalid CONFIGS name is used
This commit is contained in:
David Cole 2012-03-02 11:48:09 -05:00 committed by CMake Topic Stage
commit 2fb1df42a2
1 changed files with 1 additions and 0 deletions

View File

@ -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]);