From 39a77dd8254b2b75cf578addbb02d012ecba7455 Mon Sep 17 00:00:00 2001 From: Sarat Addepalli Date: Tue, 19 May 2015 12:27:59 +0530 Subject: [PATCH] Define the `DEBUG` macro in CMakeLists.txt Fixes #334 --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a220369..2700d92 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,8 +17,8 @@ include(GNUInstallDirs) ################################ # set lib version here -set(GENERIC_LIB_VERSION "3.0.0") -set(GENERIC_LIB_SOVERSION "3") +set(GENERIC_LIB_VERSION "3.0.0") +set(GENERIC_LIB_SOVERSION "3") ################################ @@ -51,6 +51,8 @@ if(MSVC) add_definitions(-D_CRT_SECURE_NO_WARNINGS) endif(MSVC) +set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DDEBUG") + ################################ # Add targets option(BUILD_SHARED_LIBS "build shared or static libraries" ON)