From eecd93fccafc5335915be80b169866e9829912a7 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Fri, 13 Jun 2014 10:30:57 +0200 Subject: [PATCH] Features: Escape the COMPILE_OPTIONS for dialects. Allow for future handling as a list, not a string which may contain whitespace. --- Source/cmLocalGenerator.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index c8c8c796b..8ae1157ee 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; } }