Remove definition of NDEBUG for VS (since VS will define this
automatically in release builds), and add -DDEBUG in VS only for debug builds. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14956 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
fb3b2a9f80
commit
1265abd4a0
@ -149,16 +149,21 @@ 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()
|
# 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:
|
||||||
# TODO: remove this switch
|
set_property(DIRECTORY PROPERTY COMPILE_DEFINITIONS_DEBUG DEBUG)
|
||||||
add_definitions(-DHAVE_OGGVORBIS)
|
else()
|
||||||
|
# All non VS generators used create only a single compile mode, so
|
||||||
|
# compile flags can be simplye be added
|
||||||
if(CMAKE_BUILD_TYPE MATCHES Debug)
|
if(CMAKE_BUILD_TYPE MATCHES Debug)
|
||||||
add_definitions(-DDEBUG)
|
add_definitions(-DDEBUG)
|
||||||
else()
|
else()
|
||||||
add_definitions(-DNDEBUG)
|
add_definitions(-DNDEBUG)
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# TODO: remove this switch
|
||||||
|
add_definitions(-DHAVE_OGGVORBIS)
|
||||||
|
|
||||||
|
|
||||||
# Provides list of source and header files (STK_SOURCES and STK_HEADERS)
|
# Provides list of source and header files (STK_SOURCES and STK_HEADERS)
|
||||||
|
Loading…
Reference in New Issue
Block a user