summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator3.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-04-10 16:08:20 (GMT)
committerBrad King <brad.king@kitware.com>2020-04-15 12:34:48 (GMT)
commit031bfaa865956c101aff74d35573381ebe71f0a1 (patch)
tree64bdc894e8fca69c1f1439765362fc2dda55c960 /Source/cmLocalUnixMakefileGenerator3.h
parentca343dad0782733e5e39e7f1427d613e1cad5cf9 (diff)
downloadCMake-031bfaa865956c101aff74d35573381ebe71f0a1.zip
CMake-031bfaa865956c101aff74d35573381ebe71f0a1.tar.gz
CMake-031bfaa865956c101aff74d35573381ebe71f0a1.tar.bz2
Makefiles: Factor out makefile target path escaping and quoting
Code paths that write makefile target paths use a combination of `cmSystemTools::ConvertToOutputPath` and `cmMakeSafe`. Some were missing the latter. Wrap these two steps up into a dedicated `ConvertToMakefilePath` method provided on both the local and global generators.
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.h')
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.h b/Source/cmLocalUnixMakefileGenerator3.h
index 68eeb29..2b07952 100644
--- a/Source/cmLocalUnixMakefileGenerator3.h
+++ b/Source/cmLocalUnixMakefileGenerator3.h
@@ -46,6 +46,12 @@ public:
// local generators StartOutputDirectory
const std::string& GetHomeRelativeOutputPath();
+ /**
+ * Convert a file path to a Makefile target or dependency with
+ * escaping and quoting suitable for the generator's make tool.
+ */
+ std::string ConvertToMakefilePath(std::string const& path) const;
+
// Write out a make rule
void WriteMakeRule(std::ostream& os, const char* comment,
const std::string& target,