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:
parent
781df59540
commit
403be02804
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user