1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-11-12 15:50:08 +00:00

Update CMake to define _DEBUG for MinGW

This commit is contained in:
walbourn 2022-11-26 18:15:10 -08:00
parent 781df59540
commit 403be02804

View File

@ -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 $<IF:$<CONFIG:DEBUG>,_DEBUG,NDEBUG>)
target_compile_options(${t} PRIVATE -Wno-ignored-attributes)
target_link_options(${t} PRIVATE -municode)
endforeach()