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/cmLocalVisualStudio7Generator.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/cmLocalVisualStudio7Generator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudio7Generator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index c50cc5d..151470b 100644 --- a/Source/cmLocalVisualStudio7Generator.cxx +++ b/Source/cmLocalVisualStudio7Generator.cxx @@ -1254,7 +1254,7 @@ void cmLocalVisualStudio7GeneratorInternals::OutputLibraries( { cmLocalVisualStudio7Generator* lg = this->LocalGenerator; for (auto const& lib : libs) { - if (lib.IsPath) { + if (lib.IsPath == cmComputeLinkInformation::ItemIsPath::Yes) { std::string rel = lg->MaybeRelativeToCurBinDir(lib.Value.Value); fout << lg->ConvertToXMLOutputPath(rel) << " "; } else if (!lib.Target || |