summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator3.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-11-03 12:59:50 (GMT)
committerBrad King <brad.king@kitware.com>2011-11-03 13:23:55 (GMT)
commit23381d83d8d8399eea372e3f2407beac39e55b98 (patch)
tree0cd92b246f5775efc1a12aaa9d5482105f5af34e /Source/cmLocalUnixMakefileGenerator3.h
parent22bf096474dbd819e4a10cc3b45fa54ba50213d0 (diff)
downloadCMake-23381d83d8d8399eea372e3f2407beac39e55b98.zip
CMake-23381d83d8d8399eea372e3f2407beac39e55b98.tar.gz
CMake-23381d83d8d8399eea372e3f2407beac39e55b98.tar.bz2
Watcom: Use shortpath to CMake if full path has parens (#12548)
The Watcom WMake tool has trouble running commands in paths that have parentheses. We already convert most commands to a shortpath for Watcom if the path contains a space, but the use of $(CMAKE_COMMAND) hides the true path from that conversion. Factor the shortpath conversion code out into a new ConvertShellCommand method. Teach it to convert paths that contain parentheses as well as spaces. Use the new method to convert the value of $(CMAKE_COMMAND) and other helper variables.
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.h')
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.h b/Source/cmLocalUnixMakefileGenerator3.h
index fab98da..45ac21d 100644
--- a/Source/cmLocalUnixMakefileGenerator3.h
+++ b/Source/cmLocalUnixMakefileGenerator3.h
@@ -340,6 +340,7 @@ protected:
void CheckMultipleOutputs(bool verbose);
private:
+ std::string ConvertShellCommand(std::string const& cmd, RelativeRoot root);
std::string MakeLauncher(const cmCustomCommand& cc, cmTarget* target,
RelativeRoot relative);