|
@@ -584,7 +584,8 @@ void cmGlobalGenerator::EnableLanguage(
|
|
|
// Find the native build tool for this generator.
|
|
// Find the native build tool for this generator.
|
|
|
// This has to be done early so that MSBuild can be used to examine the
|
|
// This has to be done early so that MSBuild can be used to examine the
|
|
|
// cross-compilation environment.
|
|
// cross-compilation environment.
|
|
|
- if (!this->FindMakeProgram(mf)) {
|
|
|
|
|
|
|
+ if (this->GetFindMakeProgramStage() == FindMakeProgramStage::Early &&
|
|
|
|
|
+ !this->FindMakeProgram(mf)) {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -660,6 +661,12 @@ void cmGlobalGenerator::EnableLanguage(
|
|
|
cmSystemTools::SetFatalErrorOccured();
|
|
cmSystemTools::SetFatalErrorOccured();
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ // Find the native build tool for this generator.
|
|
|
|
|
+ if (this->GetFindMakeProgramStage() == FindMakeProgramStage::Late &&
|
|
|
|
|
+ !this->FindMakeProgram(mf)) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// Check that the languages are supported by the generator and its
|
|
// Check that the languages are supported by the generator and its
|