diff options
author | Brad King <brad.king@kitware.com> | 2011-11-03 12:59:50 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-11-03 13:23:55 (GMT) |
commit | 23381d83d8d8399eea372e3f2407beac39e55b98 (patch) | |
tree | 0cd92b246f5775efc1a12aaa9d5482105f5af34e /Source/cmLocalUnixMakefileGenerator3.h | |
parent | 22bf096474dbd819e4a10cc3b45fa54ba50213d0 (diff) | |
download | CMake-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.h | 1 |
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); |