summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/System.h.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-10-04 22:52:24 (GMT)
committerBrad King <brad.king@kitware.com>2006-10-04 22:52:24 (GMT)
commit038c9e27d78b2df56460c85a1a797c7e0dc3e149 (patch)
tree842bf9339e01ef6a38c8370c24141dd96ad8ce1d /Source/kwsys/System.h.in
parent5a6b0792cd5b3dd16b8a94091db15e02e9b4a00b (diff)
downloadCMake-038c9e27d78b2df56460c85a1a797c7e0dc3e149.zip
CMake-038c9e27d78b2df56460c85a1a797c7e0dc3e149.tar.gz
CMake-038c9e27d78b2df56460c85a1a797c7e0dc3e149.tar.bz2
ENH: Adding Shell_Flag_EchoWindows option to setup escapes for arguments to the native echo command in a shell. This special case is needed to avoid adding quotes when passing text to echo in a native windows shell which does no command line parsing at all.
Diffstat (limited to 'Source/kwsys/System.h.in')
-rw-r--r--Source/kwsys/System.h.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/kwsys/System.h.in b/Source/kwsys/System.h.in
index b125473..8c7d2a8 100644
--- a/Source/kwsys/System.h.in
+++ b/Source/kwsys/System.h.in
@@ -31,6 +31,7 @@
#define kwsysSystem_Shell_Flag_e kwsys_ns(System_Shell_Flag_e)
#define kwsysSystem_Shell_Flag_Make kwsys_ns(System_Shell_Flag_Make)
#define kwsysSystem_Shell_Flag_VSIDE kwsys_ns(System_Shell_Flag_VSIDE)
+#define kwsysSystem_Shell_Flag_EchoWindows kwsys_ns(System_Shell_Flag_EchoWindows)
#define kwsysSystem_Shell_Flag_AllowMakeVariables kwsys_ns(System_Shell_Flag_AllowMakeVariables)
#if defined(__cplusplus)
@@ -78,12 +79,15 @@ enum kwsysSystem_Shell_Flag_e
Shell_Flag_Make. */
kwsysSystem_Shell_Flag_VSIDE = (1<<1),
+ /** In a windows whell the argument is being passed to "echo". */
+ kwsysSystem_Shell_Flag_EchoWindows = (1<<2),
+
/** Make variable reference syntax $(MAKEVAR) should not be escaped
to allow a build tool to replace it. Replacement values
containing spaces, quotes, backslashes, or other
non-alphanumeric characters that have significance to some makes
or shells produce undefined behavior. */
- kwsysSystem_Shell_Flag_AllowMakeVariables = (1<<2)
+ kwsysSystem_Shell_Flag_AllowMakeVariables = (1<<3)
};
#if defined(__cplusplus)
@@ -102,6 +106,7 @@ enum kwsysSystem_Shell_Flag_e
# undef kwsysSystem_Shell_Flag_e
# undef kwsysSystem_Shell_Flag_Make
# undef kwsysSystem_Shell_Flag_VSIDE
+# undef kwsysSystem_Shell_Flag_EchoWindows
# undef kwsysSystem_Shell_Flag_AllowMakeVariables
#endif