summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 4ab899a..cacce68 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -1023,7 +1023,7 @@ cmLocalGenerator::ConvertToOutputForExisting(const char* p)
{
if(!cmSystemTools::GetShortPath(ret.c_str(), ret))
{
- ret = this->Convert(p,START_OUTPUT,MAKEFILE,true);
+ ret = this->Convert(p,START_OUTPUT,SHELL,true);
}
}
}
@@ -2088,6 +2088,14 @@ std::string cmLocalGenerator::Convert(const char* source,
result[0] = '/';
}
}
+ // if this is unix then we need to escape () in the shell
+#if !defined(WIN32) || defined(CYGWIN)
+ forceOn = true;
+#endif
+ if(forceOn )
+ {
+ result = cmSystemTools::EscapeForUnixShell(result);
+ }
}
return result;
}