Add MinGW CMake option to disable DWARF debugging information

Also, I disabled it for the Linux MinGW build.
This commit is contained in:
vvanelslande 2019-08-13 21:10:22 -05:00
parent e18c7ee78f
commit 1437c4a01a
3 changed files with 6 additions and 8 deletions

View file

@ -71,7 +71,9 @@ else()
if (MINGW)
add_definitions(-DMINGW_HAS_SECURE_API)
add_compile_options("-gdwarf")
if (COMPILE_WITH_DWARF)
add_compile_options("-gdwarf")
endif()
if (MINGW_STATIC_BUILD)
add_definitions(-DQT_STATICPLUGIN)