summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalNinjaGenerator.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2024-06-08 12:14:57 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2024-08-27 15:30:23 (GMT)
commit7b8b751637c4a2956ef9d899cf18302da038f4ed (patch)
treea81ef5f21b7f3d198bef8b6be546bfc3a60b7f9b /Source/cmGlobalNinjaGenerator.cxx
parentcf1e36e8c590ad5d40216fbd27881edb3ec341c3 (diff)
downloadCMake-7b8b751637c4a2956ef9d899cf18302da038f4ed.zip
CMake-7b8b751637c4a2956ef9d899cf18302da038f4ed.tar.gz
CMake-7b8b751637c4a2956ef9d899cf18302da038f4ed.tar.bz2
cmGlobalGenerator: add a method to make an output-formatted string
This is needed to inject arguments through flag generation mechanisms so that they can all be unescaped uniformly. Eventually, these methods should go away and the escape/unescape dance be avoided completely.
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-rw-r--r--Source/cmGlobalNinjaGenerator.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx
index b051d67..1a7327c 100644
--- a/Source/cmGlobalNinjaGenerator.cxx
+++ b/Source/cmGlobalNinjaGenerator.cxx
@@ -3149,6 +3149,11 @@ bool cmGlobalNinjaGenerator::IsSingleConfigUtility(
!this->PerConfigUtilityTargets.count(target->GetName());
}
+std::string cmGlobalNinjaGenerator::ConvertToOutputPath(std::string path) const
+{
+ return this->ConvertToNinjaPath(path);
+}
+
const char* cmGlobalNinjaMultiGenerator::NINJA_COMMON_FILE =
"CMakeFiles/common.ninja";
const char* cmGlobalNinjaMultiGenerator::NINJA_FILE_EXTENSION = ".ninja";