summaryrefslogtreecommitdiffstats
path: root/Source/cmCommonTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-05-12 19:34:38 (GMT)
committerBrad King <brad.king@kitware.com>2021-05-13 16:47:25 (GMT)
commit1879f1bcbc4e2fbd9eaca4eff351ab928c4a3268 (patch)
treef8898282e05c75044de5a98937a7eb51b0811ecf /Source/cmCommonTargetGenerator.cxx
parent1d1d88d3c8b6745b31c220599f536fd50bf5cbe9 (diff)
downloadCMake-1879f1bcbc4e2fbd9eaca4eff351ab928c4a3268.zip
CMake-1879f1bcbc4e2fbd9eaca4eff351ab928c4a3268.tar.gz
CMake-1879f1bcbc4e2fbd9eaca4eff351ab928c4a3268.tar.bz2
cmLocalCommonGenerator: Factor out relative path conversion helper
Diffstat (limited to 'Source/cmCommonTargetGenerator.cxx')
-rw-r--r--Source/cmCommonTargetGenerator.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmCommonTargetGenerator.cxx b/Source/cmCommonTargetGenerator.cxx
index 228cff7..0c5a7df 100644
--- a/Source/cmCommonTargetGenerator.cxx
+++ b/Source/cmCommonTargetGenerator.cxx
@@ -241,8 +241,7 @@ std::string cmCommonTargetGenerator::GetManifests(const std::string& config)
manifests.reserve(manifest_srcs.size());
for (cmSourceFile const* manifest_src : manifest_srcs) {
manifests.push_back(this->LocalCommonGenerator->ConvertToOutputFormat(
- this->LocalCommonGenerator->MaybeConvertToRelativePath(
- this->LocalCommonGenerator->GetWorkingDirectory(),
+ this->LocalCommonGenerator->MaybeRelativeToWorkDir(
manifest_src->GetFullPath()),
cmOutputConverter::SHELL));
}