summaryrefslogtreecommitdiff
path: root/Source/cmLinkLineComputer.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-05-29 09:21:20 -0400
committerBrad King <brad.king@kitware.com>2021-05-29 09:28:35 -0400
commit8a4ca110e49c64c4892a37ffe08a91a5a5219acf (patch)
treefc0ea487105b9ecee8c98d5c6c23dbafe4c77ed4 /Source/cmLinkLineComputer.cxx
parent83ad066ed10ccabc4331c4b620ad6a4fa0cd36ba (diff)
downloadcmake-8a4ca110e49c64c4892a37ffe08a91a5a5219acf.tar.gz
cmComputeLinkInformation: Improve type safety of item IsPath member
Use an enum to avoid implicit conversions to bool.
Diffstat (limited to 'Source/cmLinkLineComputer.cxx')
-rw-r--r--Source/cmLinkLineComputer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmLinkLineComputer.cxx b/Source/cmLinkLineComputer.cxx
index a3f2968b1c..6eb8d75a6d 100644
--- a/Source/cmLinkLineComputer.cxx
+++ b/Source/cmLinkLineComputer.cxx
@@ -74,7 +74,7 @@ void cmLinkLineComputer::ComputeLinkLibs(
}
BT<std::string> linkLib;
- if (item.IsPath) {
+ if (item.IsPath == cmComputeLinkInformation::ItemIsPath::Yes) {
linkLib.Value += cli.GetLibLinkFileFlag();
linkLib.Value += this->ConvertToOutputFormat(
this->ConvertToLinkReference(item.Value.Value));