summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio7Generator.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/cmLocalVisualStudio7Generator.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/cmLocalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx2
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 ||