diff --git a/CMakeLists.txt b/CMakeLists.txt index 09751db3..f4f6ce37 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()