1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-19 02:17:27 +08:00

Ninja Multi-Config: Fix cross-config custom command dependency tracing

Process `CMAKE_CROSS_CONFIGS` and friends to properly configure the
generator for cross-config behavior before custom command dependency
tracing.
This commit is contained in:
Brad King
2021-11-04 11:58:06 -04:00
parent fda948846b
commit 16e24748c5
4 changed files with 5 additions and 5 deletions

View File

@@ -1402,6 +1402,9 @@ bool cmGlobalGenerator::Compute()
this->SupportsDefaultConfigs())) {
return false;
}
if (!this->InspectConfigTypeVariables()) {
return false;
}
// Some generators track files replaced during the Generate.
// Start with an empty vector:

View File

@@ -153,6 +153,8 @@ public:
*/
virtual void Configure();
virtual bool InspectConfigTypeVariables() { return true; }
bool Compute();
virtual void AddExtraIDETargets() {}

View File

@@ -568,9 +568,6 @@ void cmGlobalNinjaGenerator::Generate()
msg.str());
return;
}
if (!this->InspectConfigTypeVariables()) {
return;
}
if (!this->OpenBuildFileStreams()) {
return;
}

View File

@@ -481,8 +481,6 @@ protected:
const std::set<std::string>& all, const std::set<std::string>& defaults,
const std::vector<std::string>& items);
virtual bool InspectConfigTypeVariables() { return true; }
std::set<std::string> CrossConfigs;
std::set<std::string> DefaultConfigs;
std::string DefaultFileConfig;