Commit b0f00cf3 authored by Anton Gladky's avatar Anton Gladky

Add -DNDEBUG if compiling in release mode

Drops asserts in non-debug mode.
parent 331661ba
......@@ -77,6 +77,8 @@ IF (DEBUG)
SET(CMAKE_VERBOSE_MAKEFILE 1)
SET(CMAKE_BUILD_TYPE Debug)
ADD_DEFINITIONS("-DYADE_DEBUG -g")
ELSE (DEBUG)
ADD_DEFINITIONS(${CMAKE_CXX_FLAGS_RELEASE})
ENDIF (DEBUG)
#===========================================================
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment