summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-06-13 08:30:57 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-06-13 16:50:10 (GMT)
commiteecd93fccafc5335915be80b169866e9829912a7 (patch)
tree88f69e02cda04646641d5c2189028fce173cbf45 /Source/cmLocalGenerator.cxx
parent1f00d738bde27a55531d27ba311d977fb9c59539 (diff)
downloadCMake-eecd93fccafc5335915be80b169866e9829912a7.zip
CMake-eecd93fccafc5335915be80b169866e9829912a7.tar.gz
CMake-eecd93fccafc5335915be80b169866e9829912a7.tar.bz2
Features: Escape the COMPILE_OPTIONS for dialects.
Allow for future handling as a list, not a string which may contain whitespace.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index c8c8c79..8ae1157 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -2229,7 +2229,10 @@ AddCompilerRequirementFlag(std::string &flags, cmTarget* target,
"does not know the compile flags to use to enable it.";
this->GetMakefile()->IssueMessage(cmake::FATAL_ERROR, e.str());
}
- this->AppendFlags(flags, opt);
+ else
+ {
+ this->AppendFlagEscape(flags, opt);
+ }
return;
}
@@ -2275,7 +2278,7 @@ AddCompilerRequirementFlag(std::string &flags, cmTarget* target,
if (const char *opt = target->GetMakefile()->GetDefinition(option_flag))
{
- this->AppendFlags(flags, opt);
+ this->AppendFlagEscape(flags, opt);
return;
}
}