From 4e38f2af2b97850ec5b395d4e0ea8310e664e52f Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 18 Oct 2018 03:35:05 +0200 Subject: Fix defines no set --- backend/ninja/Ninja.cpp | 4 ++-- 1 file 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 + "\""; -- cgit v1.2.3