diff options
author | Brad King <brad.king@kitware.com> | 2021-05-20 18:36:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-05-25 14:48:25 (GMT) |
commit | 18408c0b88423a40d239705eb28b65b481cf0973 (patch) | |
tree | 4b0aa8c88cf954f0853af9d35f950169bb9c9180 /Source/cmNinjaTargetGenerator.h | |
parent | efb8d7b4a1d82f2ce4bb01f200367679a6dc46c4 (diff) | |
download | CMake-18408c0b88423a40d239705eb28b65b481cf0973.zip CMake-18408c0b88423a40d239705eb28b65b481cf0973.tar.gz CMake-18408c0b88423a40d239705eb28b65b481cf0973.tar.bz2 |
cmGlobalNinjaGenerator: Add helper to compute absolute paths for build.ninja
Diffstat (limited to 'Source/cmNinjaTargetGenerator.h')
-rw-r--r-- | Source/cmNinjaTargetGenerator.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmNinjaTargetGenerator.h b/Source/cmNinjaTargetGenerator.h index daf7817..4b4cf8d 100644 --- a/Source/cmNinjaTargetGenerator.h +++ b/Source/cmNinjaTargetGenerator.h @@ -110,6 +110,11 @@ protected: return this->GetGlobalGenerator()->MapToNinjaPath(); } + std::string ConvertToNinjaAbsPath(std::string path) const + { + return this->GetGlobalGenerator()->ConvertToNinjaAbsPath(std::move(path)); + } + /// @return the list of link dependency for the given target @a target. cmNinjaDeps ComputeLinkDeps(const std::string& linkLanguage, const std::string& config, |