Commit 763aad58 authored by Ruslan Baratov's avatar Ruslan Baratov
Browse files

WIP: Add CMAKE_FIND_PACKAGE_INCLUDE variable

parent 11475cc5
Pipeline #133578 failed with stage
......@@ -497,6 +497,20 @@ bool cmFindPackageCommand::InitialPass(std::vector<std::string> const& args,
this->SetModuleVariables(components);
const char* include =
this->Makefile->GetDefinition("CMAKE_FIND_PACKAGE_INCLUDE");
if (include) {
const bool readit = this->Makefile->ReadDependentFile(include);
if (!readit && !cmSystemTools::GetFatalErrorOccured()) {
std::string m = "could not find file:\n"
" ";
m += include;
this->SetError(m);
return false;
}
}
// See if there is a Find<PackageName>.cmake module.
if (this->UseFindModules) {
bool foundModule = false;
......
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