summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2001-04-09 14:31:36 (GMT)
committerBrad King <brad.king@kitware.com>2001-04-09 14:31:36 (GMT)
commite0da3ef275682626ec2e23d1abd6cca752882b47 (patch)
tree9a0e8ed9cc7a7fc8c3c07d89f255e08c33d257bb /Source/cmSystemTools.h
parente7bd5fcd19064480142aae2928189dc822fad47c (diff)
downloadCMake-e0da3ef275682626ec2e23d1abd6cca752882b47.zip
CMake-e0da3ef275682626ec2e23d1abd6cca752882b47.tar.gz
CMake-e0da3ef275682626ec2e23d1abd6cca752882b47.tar.bz2
ERR: Corrected use of double-quotes to be compatible with UNIX make. Now double quotes (windows) or escape sequences for spaces (unix) are added when dependencies are output.
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index f872a2c..04347fc 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -43,6 +43,12 @@ public:
const char* with);
/**
+ * Return a string equivalent to the input string, but with all " " replaced
+ * with "\ " to escape the spaces.
+ */
+ static std::string EscapeSpaces(const char*);
+
+ /**
* Replace Windows file system slashes with Unix-style slashes.
*/
static void ConvertToUnixSlashes(std::string& path);