cmMakefile: Return a string from GetDefineFlags

Flip condition in GHS for readability.
This commit is contained in:
Stephen Kelly authored and Brad King committed 2016-10-10 10:09:54 -04:00
1 parent fbc1b75c26
commit c637e0c53b
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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());
}
+1 -1
View File
@@ -447,7 +447,7 @@ public:
/**
* Get a list of preprocessor define flags.
*/
const char* GetDefineFlags() const { return this->DefineFlags.c_str(); }
std::string GetDefineFlags() const { return this->DefineFlags; }
/**
* Make sure CMake can write this file