[cmake] define required macros for debug builds

pull/3/head
Hleb Valoshka 2019-08-20 10:16:27 +03:00 committed by eyvallah
parent 0130655d87
commit 4c20e54119
1 changed files with 3 additions and 1 deletions

View File

@ -273,7 +273,9 @@ if(APPLE)
endif()
string(TOLOWER "${CMAKE_BUILD_TYPE}" build_type_lc)
if(NOT "${build_type_lc}" STREQUAL "debug")
if("${build_type_lc}" STREQUAL "debug")
add_definitions(-D_DEBUG -DDEBUG)
else()
add_definitions(-DNO_DEBUG -DEIGEN_NO_DEBUG)
endif()