|
@@ -1440,6 +1440,20 @@ bool cmGlobalGenerator::Compute()
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if (cmValue v = this->CMakeInstance->GetCacheDefinition(
|
|
|
|
|
+ "CMAKE_INTERMEDIATE_DIR_STRATEGY")) {
|
|
|
|
|
+ if (*v == "FULL") {
|
|
|
|
|
+ this->IntDirStrategy = IntermediateDirStrategy::Full;
|
|
|
|
|
+ } else if (*v == "SHORT") {
|
|
|
|
|
+ this->IntDirStrategy = IntermediateDirStrategy::Short;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this->GetCMakeInstance()->IssueMessage(
|
|
|
|
|
+ MessageType::FATAL_ERROR,
|
|
|
|
|
+ cmStrCat("Unsupported intermediate directory strategy '", *v, '\''));
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
// Some generators track files replaced during the Generate.
|
|
// Some generators track files replaced during the Generate.
|
|
|
// Start with an empty vector:
|
|
// Start with an empty vector:
|
|
|
this->FilesReplacedDuringGenerate.clear();
|
|
this->FilesReplacedDuringGenerate.clear();
|
|
@@ -1981,6 +1995,17 @@ void cmGlobalGenerator::ClearGeneratorMembers()
|
|
|
this->WarnedExperimental.clear();
|
|
this->WarnedExperimental.clear();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+bool cmGlobalGenerator::SupportsShortObjectNames() const
|
|
|
|
|
+{
|
|
|
|
|
+ return false;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+bool cmGlobalGenerator::UseShortObjectNames() const
|
|
|
|
|
+{
|
|
|
|
|
+ return this->SupportsShortObjectNames() &&
|
|
|
|
|
+ this->IntDirStrategy == IntermediateDirStrategy::Short;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
void cmGlobalGenerator::ComputeTargetObjectDirectory(
|
|
void cmGlobalGenerator::ComputeTargetObjectDirectory(
|
|
|
cmGeneratorTarget* /*unused*/) const
|
|
cmGeneratorTarget* /*unused*/) const
|
|
|
{
|
|
{
|