summaryrefslogtreecommitdiffstats
path: root/Source/cmComputeLinkInformation.cxx
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2022-02-06 15:46:33 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2022-02-25 10:08:17 (GMT)
commit01ff75b2ff90cc5cd3db509e24d5691a2a7815e7 (patch)
tree2d0a39eb6488aa6c3eb4f3e75f4632719bd486b8 /Source/cmComputeLinkInformation.cxx
parentc515ac41ee5a7249b9816d2cceb36cebf828a7f7 (diff)
downloadCMake-01ff75b2ff90cc5cd3db509e24d5691a2a7815e7.zip
CMake-01ff75b2ff90cc5cd3db509e24d5691a2a7815e7.tar.gz
CMake-01ff75b2ff90cc5cd3db509e24d5691a2a7815e7.tar.bz2
cmComputeDepends::LinkEntry: introduce enum to specify item type
Diffstat (limited to 'Source/cmComputeLinkInformation.cxx')
-rw-r--r--Source/cmComputeLinkInformation.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmComputeLinkInformation.cxx b/Source/cmComputeLinkInformation.cxx
index 9df2044..fe4491d 100644
--- a/Source/cmComputeLinkInformation.cxx
+++ b/Source/cmComputeLinkInformation.cxx
@@ -571,7 +571,7 @@ bool cmComputeLinkInformation::Compute()
}
}
- if (linkEntry.IsSharedDep) {
+ if (linkEntry.Kind == cmComputeLinkDepends::LinkEntry::SharedDep) {
this->AddSharedDepItem(linkEntry);
} else {
this->AddItem(linkEntry);
@@ -1521,7 +1521,9 @@ void cmComputeLinkInformation::AddFullItem(LinkEntry const& entry)
item, ItemIsPath::Yes, nullptr,
this->FindLibraryFeature(
entry.Feature == DEFAULT
- ? (entry.IsObject ? "__CMAKE_LINK_OBJECT" : "__CMAKE_LINK_LIBRARY")
+ ? (entry.Kind == cmComputeLinkDepends::LinkEntry::Object
+ ? "__CMAKE_LINK_OBJECT"
+ : "__CMAKE_LINK_LIBRARY")
: entry.Feature));
}