You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by fg...@apache.org on 2026/02/26 15:25:17 UTC

(nifi-minifi-cpp) 03/05: MINIFICPP-2733 Fix compilation on Windows in debug mode with Ninja

This is an automated email from the ASF dual-hosted git repository.

fgerlits pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git

commit 4096b863734d1d8000fd64357561044e1fc2d013
Author: Gabor Gyimesi <ga...@gmail.com>
AuthorDate: Thu Feb 26 14:22:06 2026 +0100

    MINIFICPP-2733 Fix compilation on Windows in debug mode with Ninja
    
    Signed-off-by: Ferenc Gerlits <fg...@gmail.com>
    
    Closes #2122
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 595e570de..4bc5ce888 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -105,7 +105,7 @@ if (WIN32)
     add_compile_options(/W3 /utf-8 /bigobj /MP /diagnostics:caret)
     if (CMAKE_GENERATOR STREQUAL "Ninja")
         # these flags are default on msbuild, but not on ninja
-        add_compile_options(/MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline)
+        add_compile_options($<$<CONFIG:Debug>:/MDd> $<$<NOT:$<CONFIG:Debug>>:/MD> /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline)
     endif()
 endif()