summaryrefslogtreecommitdiffstats
path: root/Source/cmLinkLineDeviceComputer.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-05-29 13:21:20 (GMT)
committerBrad King <brad.king@kitware.com>2021-05-29 13:28:35 (GMT)
commit8a4ca110e49c64c4892a37ffe08a91a5a5219acf (patch)
treefc0ea487105b9ecee8c98d5c6c23dbafe4c77ed4 /Source/cmLinkLineDeviceComputer.cxx
parent83ad066ed10ccabc4331c4b620ad6a4fa0cd36ba (diff)
downloadCMake-8a4ca110e49c64c4892a37ffe08a91a5a5219acf.zip
CMake-8a4ca110e49c64c4892a37ffe08a91a5a5219acf.tar.gz
CMake-8a4ca110e49c64c4892a37ffe08a91a5a5219acf.tar.bz2
cmComputeLinkInformation: Improve type safety of item IsPath member
Use an enum to avoid implicit conversions to bool.
Diffstat (limited to 'Source/cmLinkLineDeviceComputer.cxx')
-rw-r--r--Source/cmLinkLineDeviceComputer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmLinkLineDeviceComputer.cxx b/Source/cmLinkLineDeviceComputer.cxx
index 9cae926..2ffff96 100644
--- a/Source/cmLinkLineDeviceComputer.cxx
+++ b/Source/cmLinkLineDeviceComputer.cxx
@@ -111,7 +111,7 @@ void cmLinkLineDeviceComputer::ComputeLinkLibraries(
}
BT<std::string> linkLib;
- if (item.IsPath) {
+ if (item.IsPath == cmComputeLinkInformation::ItemIsPath::Yes) {
// nvcc understands absolute paths to libraries ending in '.a' or '.lib'.
// These should be passed to nvlink. Other extensions need to be left
// out because nvlink may not understand or need them. Even though it