summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorKinan Mahdi <kinan.mahdi@gmail.com>2020-06-03 22:20:11 (GMT)
committerBrad King <brad.king@kitware.com>2020-06-05 12:01:59 (GMT)
commit3fd07d30bfdb35fa1f807d58da7bcf18cfb037b2 (patch)
tree57d854ec0c63b42075ea342fd95fcef7bd799114 /Source
parent3414ee155e0423284a9171497d7724828fd324a5 (diff)
downloadCMake-3fd07d30bfdb35fa1f807d58da7bcf18cfb037b2.zip
CMake-3fd07d30bfdb35fa1f807d58da7bcf18cfb037b2.tar.gz
CMake-3fd07d30bfdb35fa1f807d58da7bcf18cfb037b2.tar.bz2
VS: Enable DOTNET_TARGET_FRAMEWORK properties all target types
This makes them compatible with `VS_PACKAGE_REFERENCES` and, in particular, fixes nuget package references in combination with install targets. Fixes: #20764
Diffstat (limited to 'Source')
-rw-r--r--Source/cmTarget.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 4bb48fb..36e1ad5 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -533,7 +533,7 @@ cmTarget::cmTarget(std::string const& name, cmStateEnums::TargetType type,
initProp("JOB_POOL_PRECOMPILE_HEADER");
}
- if (impl->TargetType <= cmStateEnums::UTILITY) {
+ if (impl->TargetType <= cmStateEnums::GLOBAL_TARGET) {
initProp("DOTNET_TARGET_FRAMEWORK");
initProp("DOTNET_TARGET_FRAMEWORK_VERSION");
}