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