mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-08 23:44:00 +03:00
cmMakefile: Return a string from GetDefineFlags
Flip condition in GHS for readability.
This commit is contained in:
1 parent
fbc1b75c26
commit
c637e0c53b
2 files changed
+2
-2
No files matched your search
@@ -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
@@ -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
|
||||
|
||||
Reference in new issue
Block a user