aboutsummaryrefslogtreecommitdiff
path: root/backend/ninja
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-10-18 03:35:05 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:39:33 +0200
commit4e38f2af2b97850ec5b395d4e0ea8310e664e52f (patch)
tree8ed1659100304b264ecf28259977d1a26baeed4d /backend/ninja
parent1a915d39651e6c8c43ebe8d27ed6e518bf03909c (diff)
Fix defines no set
Diffstat (limited to 'backend/ninja')
-rw-r--r--backend/ninja/Ninja.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/ninja/Ninja.cpp b/backend/ninja/Ninja.cpp
index ded7b28..0fe222b 100644
--- a/backend/ninja/Ninja.cpp
+++ b/backend/ninja/Ninja.cpp
@@ -127,14 +127,14 @@ namespace backend
case Compiler::MINGW_W64:
case Compiler::GCC:
{
- if(value.empty())
+ if(!value.empty())
return "'-D" + name + "=" + value + "'";
else
return "'-D" + name + "'";
}
case Compiler::MSVC:
{
- if(value.empty())
+ if(!value.empty())
return "\"/D" + name + "=" + value + "\"";
else
return "\"/D" + name + "\"";