diff options
author | Brad King <brad.king@kitware.com> | 2019-03-19 13:56:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-03-19 13:57:23 (GMT) |
commit | a13a5c948e3e530716efaae0f56d9d9766c5d315 (patch) | |
tree | 4c28b4b971a1caa349014cd9d101627b245d17f6 /Source/cmGlobalGhsMultiGenerator.cxx | |
parent | d2101e944a03056dc2180dd790ba85175e04d653 (diff) | |
download | CMake-a13a5c948e3e530716efaae0f56d9d9766c5d315.zip CMake-a13a5c948e3e530716efaae0f56d9d9766c5d315.tar.gz CMake-a13a5c948e3e530716efaae0f56d9d9766c5d315.tar.bz2 |
Replace use of CollapseCombinedPath with CollapseFullPath
`CollapseCombinedPath` was introduced by commit 551d3343cd (cmDependsC:
Collapse relative include paths, 2013-06-19, v2.8.12~237^2) where the
existing `CollapseFullPath` should have been used instead. Then its use
proliferated slightly. Since `CollapseCombinedPath` is less widely used
and less robust (see issue #19049), use `CollapseFullPath` everywhere
instead.
Issue: #19050
Diffstat (limited to 'Source/cmGlobalGhsMultiGenerator.cxx')
-rw-r--r-- | Source/cmGlobalGhsMultiGenerator.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmGlobalGhsMultiGenerator.cxx b/Source/cmGlobalGhsMultiGenerator.cxx index 4f1d06a..dba9afa 100644 --- a/Source/cmGlobalGhsMultiGenerator.cxx +++ b/Source/cmGlobalGhsMultiGenerator.cxx @@ -185,8 +185,7 @@ void cmGlobalGhsMultiGenerator::GetToolset(cmMakefile* mf, std::string& tsd, } } else { std::string tryPath; - /* CollapseCombinedPath will check if ts is an absolute path */ - tryPath = cmSystemTools::CollapseCombinedPath(tsd, ts); + tryPath = cmSystemTools::CollapseFullPath(ts, tsd); if (!cmSystemTools::FileExists(tryPath)) { std::string msg = "GHS toolset \"" + tryPath + "\" not found."; cmSystemTools::Error(msg); |