summaryrefslogtreecommitdiffstats
path: root/Source/cmGhsMultiTargetGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2016-10-09 08:47:45 (GMT)
committerBrad King <brad.king@kitware.com>2016-10-10 14:09:54 (GMT)
commitc637e0c53b5b81d6605018bd64ea2769f356662a (patch)
treefd0d0738286e5a0abb12af5bd6845bebf1e8bce0 /Source/cmGhsMultiTargetGenerator.cxx
parentfbc1b75c2692d82f729359b0aeec7ad959662d54 (diff)
downloadCMake-c637e0c53b5b81d6605018bd64ea2769f356662a.zip
CMake-c637e0c53b5b81d6605018bd64ea2769f356662a.tar.gz
CMake-c637e0c53b5b81d6605018bd64ea2769f356662a.tar.bz2
cmMakefile: Return a string from GetDefineFlags
Flip condition in GHS for readability.
Diffstat (limited to 'Source/cmGhsMultiTargetGenerator.cxx')
-rw-r--r--Source/cmGhsMultiTargetGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGhsMultiTargetGenerator.cxx b/Source/cmGhsMultiTargetGenerator.cxx
index 959dfdb..fac68f5 100644
--- a/Source/cmGhsMultiTargetGenerator.cxx
+++ b/Source/cmGhsMultiTargetGenerator.cxx
@@ -244,7 +244,7 @@ void cmGhsMultiTargetGenerator::SetCompilerFlags(std::string const& config,
flags, this->GeneratorTarget, lang);
// Append old-style preprocessor definition flags.
- if (std::string(" ") != std::string(this->Makefile->GetDefineFlags())) {
+ if (this->Makefile->GetDefineFlags() != " ") {
this->LocalGenerator->AppendFlags(flags,
this->Makefile->GetDefineFlags());
}