From 403be028046a425f6e857094fce2d7f4b6dfc392 Mon Sep 17 00:00:00 2001 From: walbourn Date: Sat, 26 Nov 2022 18:15:10 -0800 Subject: [PATCH] Update CMake to define _DEBUG for MinGW --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6121a2d..9b5f217 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -324,6 +324,7 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") endif() if(MINGW) foreach(t IN LISTS TOOL_EXES ITEMS ${PROJECT_NAME}) + target_compile_definitions(${t} PRIVATE $,_DEBUG,NDEBUG>) target_compile_options(${t} PRIVATE -Wno-ignored-attributes) target_link_options(${t} PRIVATE -municode) endforeach()