Commit 75f8d5aa authored by Brad King's avatar Brad King

ENH: Warn and ignore EXACT without version

If the find_package command is invoked with the EXACT option but without
a version, warn and ignore the option.
parent 7f819903
......@@ -468,6 +468,14 @@ bool cmFindPackageCommand
}
}
// Ignore EXACT with no version.
if(this->Version.empty() && this->VersionExact)
{
this->VersionExact = false;
this->Makefile->IssueMessage(
cmake::AUTHOR_WARNING, "Ignoring EXACT since no version is requested.");
}
if(!this->Version.empty())
{
// Try to parse the version number and store the results that were
......
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