Add debug flags for mingw
This commit is contained in:
parent
226eeb2718
commit
0943f0ed76
@ -171,7 +171,7 @@ endif()
|
|||||||
|
|
||||||
|
|
||||||
# Set some compiler options
|
# Set some compiler options
|
||||||
if(UNIX)
|
if(UNIX OR MINGW)
|
||||||
add_definitions(-Wall)
|
add_definitions(-Wall)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@ -181,6 +181,9 @@ if(WIN32)
|
|||||||
|
|
||||||
# And shut up about unsafe stuff
|
# And shut up about unsafe stuff
|
||||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
# VS will automatically add NDEBUG for release mode, but only _DEBUG in debug mode.
|
# VS will automatically add NDEBUG for release mode, but only _DEBUG in debug mode.
|
||||||
# Since STK uses DEBUG, this is added for debug compilation only:
|
# Since STK uses DEBUG, this is added for debug compilation only:
|
||||||
set_property(DIRECTORY PROPERTY COMPILE_DEFINITIONS_DEBUG DEBUG)
|
set_property(DIRECTORY PROPERTY COMPILE_DEFINITIONS_DEBUG DEBUG)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user