Commit 2fb1df42 authored by David Cole's avatar David Cole Committed by Kitware Robot

Merge topic 'find_package-report-CONFIGS-error'

b3f9fe42 find_package: print error if an invalid CONFIGS name is used
parents 0eb520f4 b3f9fe42
......@@ -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]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment