diff options
author | Brad King <brad.king@kitware.com> | 2021-05-29 09:21:20 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-05-29 09:28:35 -0400 |
commit | 8a4ca110e49c64c4892a37ffe08a91a5a5219acf (patch) | |
tree | fc0ea487105b9ecee8c98d5c6c23dbafe4c77ed4 /Source/cmLinkLineComputer.cxx | |
parent | 83ad066ed10ccabc4331c4b620ad6a4fa0cd36ba (diff) | |
download | cmake-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.cxx | 2 |
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)); |