summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-09-16 12:15:11 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-09-16 12:15:31 (GMT)
commit86d0d78f2e6d39d22878b2a15f66ec854ed06848 (patch)
treedb275e813728a153a730dd6cd95f62d1571a1b54 /Source
parent038c416f93bb53a8d2a353474d7c41cea773a30b (diff)
parent3b9e04accb46127b837bc93e90d32060c63349ee (diff)
downloadCMake-86d0d78f2e6d39d22878b2a15f66ec854ed06848.zip
CMake-86d0d78f2e6d39d22878b2a15f66ec854ed06848.tar.gz
CMake-86d0d78f2e6d39d22878b2a15f66ec854ed06848.tar.bz2
Merge topic 'msvc-pch-obj-restriction'
3b9e04accb PCH: MSVC: Restrict OBJECT library INTERFACE_LINK_LIBRARIES usage Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !6518
Diffstat (limited to 'Source')
-rw-r--r--Source/cmLocalGenerator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 8be015e..5042874 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -2654,7 +2654,8 @@ void cmLocalGenerator::AddPchDependencies(cmGeneratorTarget* target)
cmStrCat(" ",
this->ConvertToOutputFormat(pchSourceObj, SHELL)),
true);
- } else {
+ } else if (reuseTarget->GetType() ==
+ cmStateEnums::OBJECT_LIBRARY) {
target->Target->AppendProperty(
"INTERFACE_LINK_LIBRARIES",
cmStrCat("$<$<CONFIG:", config,