diff options
author | Brad King <brad.king@kitware.com> | 2020-04-10 16:08:20 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-04-15 12:34:48 (GMT) |
commit | 031bfaa865956c101aff74d35573381ebe71f0a1 (patch) | |
tree | 64bdc894e8fca69c1f1439765362fc2dda55c960 /Source/cmGlobalUnixMakefileGenerator3.h | |
parent | ca343dad0782733e5e39e7f1427d613e1cad5cf9 (diff) | |
download | CMake-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/cmGlobalUnixMakefileGenerator3.h')
-rw-r--r-- | Source/cmGlobalUnixMakefileGenerator3.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmGlobalUnixMakefileGenerator3.h b/Source/cmGlobalUnixMakefileGenerator3.h index 44a0fd6..1caa4b7 100644 --- a/Source/cmGlobalUnixMakefileGenerator3.h +++ b/Source/cmGlobalUnixMakefileGenerator3.h @@ -136,6 +136,12 @@ public: or dependencies. */ std::string GetEmptyRuleHackDepends() { return this->EmptyRuleHackDepends; } + /** + * 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; + // change the build command for speed std::vector<GeneratedMakeCommand> GenerateBuildCommand( const std::string& makeProgram, const std::string& projectName, |