summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-11-30 16:16:24 (GMT)
committerBrad King <brad.king@kitware.com>2009-11-30 16:16:24 (GMT)
commit4f43c1f27660a37f91eccad70ac3b34b97336d6b (patch)
tree867c6aceb446df16c22ef9353f76bb09a6da950e /Source/cmLocalGenerator.cxx
parent5152bf563922da0d493cb769bca8861e25a5791a (diff)
downloadCMake-4f43c1f27660a37f91eccad70ac3b34b97336d6b.zip
CMake-4f43c1f27660a37f91eccad70ac3b34b97336d6b.tar.gz
CMake-4f43c1f27660a37f91eccad70ac3b34b97336d6b.tar.bz2
Singly-quote target names for Watcom linker
The Watcom tools do their own command-line parsing and do not accept double-quotes. Instead we single-quote the target output name when invoking wlink and other Watcom tools. This fixes support for spaces in the target output directory path when it is not under the build tree.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 5c86992..3339ee4 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -911,6 +911,16 @@ cmLocalGenerator::ExpandRuleVariable(std::string const& variable,
}
return targetQuoted;
}
+ if(variable == "TARGET_UNQUOTED")
+ {
+ std::string unquoted = replaceValues.Target;
+ std::string::size_type sz = unquoted.size();
+ if(sz > 2 && unquoted[0] == '\"' && unquoted[sz-1] == '\"')
+ {
+ unquoted = unquoted.substr(1, sz-2);
+ }
+ return unquoted;
+ }
if(replaceValues.LanguageCompileFlags)
{
if(variable == "LANGUAGE_COMPILE_FLAGS")