aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backend/ninja/Ninja.cpp2
-rw-r--r--src/CmakeModule.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/backend/ninja/Ninja.cpp b/backend/ninja/Ninja.cpp
index 7c0e9c0..0e03e20 100644
--- a/backend/ninja/Ninja.cpp
+++ b/backend/ninja/Ninja.cpp
@@ -1707,7 +1707,7 @@ namespace backend
if (fileOverwriteResult.isErr())
return fileOverwriteResult;
- if(config.skipCompile) {
+ if(!config.skipCompile) {
Result<bool> buildResult = compile(savePath);
if (!buildResult)
return buildResult;
diff --git a/src/CmakeModule.cpp b/src/CmakeModule.cpp
index 65e0c92..e3b3918 100644
--- a/src/CmakeModule.cpp
+++ b/src/CmakeModule.cpp
@@ -303,7 +303,7 @@ namespace sibs
return Result<bool>::Err(execResult);
//nprintf("Compiling cmake generated ninja file: %s\n", buildPath.c_str());
- if(config.skipCompile) {
+ if(!config.skipCompile) {
execResult = exec({ TINYDIR_STRING("ninja"), TINYDIR_STRING("-C"), buildPath }, true);
if(execResult.isOk())
{