mirror of
https://github.com/reactos/CMake.git
synced 2024-11-28 14:01:21 +00:00
cmMakefile: Return a string from GetDefineFlags
Flip condition in GHS for readability.
This commit is contained in:
parent
fbc1b75c26
commit
c637e0c53b
@ -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());
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user