summaryrefslogtreecommitdiff
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorMichael Stürmer <michael.stuermer@schaeffler.com>2018-05-03 06:57:08 +0200
committerMichael Stürmer <michael.stuermer@schaeffler.com>2018-05-15 09:00:31 +0200
commit71a033616a748d1bb4286ca0667cedf6b57df217 (patch)
tree685abddcc1baf6e244770125579c0b07806d974d /Source/cmTarget.cxx
parentd793b482d914e0d8706b901dceeb1b5f0c405413 (diff)
downloadcmake-71a033616a748d1bb4286ca0667cedf6b57df217.tar.gz
added CMAKE_DOTNET_TARGET_FRAMEWORK_VERSION variable
Fixes: #17955
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index d17a85a1d2..7dcba748ef 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -399,6 +399,10 @@ cmTarget::cmTarget(std::string const& name, cmStateEnums::TargetType type,
this->SetPropertyDefault("JOB_POOL_COMPILE", nullptr);
this->SetPropertyDefault("JOB_POOL_LINK", nullptr);
}
+
+ if (this->TargetTypeValue <= cmStateEnums::UTILITY) {
+ this->SetPropertyDefault("DOTNET_TARGET_FRAMEWORK_VERSION", nullptr);
+ }
}
cmGlobalGenerator* cmTarget::GetGlobalGenerator() const