From 250600d8b2d08ddc3c0ddb58d95a102896c43f78 Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Thu, 17 Jul 2014 16:53:14 +0200 Subject: [PATCH] Make the verbosity of the observers manager switchable from the cmake file. --- CMakeLists.txt | 5 ++++- src/observersmanager.hpp | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3a287eb..0c63dd0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,10 @@ PKG_SEARCH_MODULE(SDL2 REQUIRED sdl2) find_package(PNG REQUIRED) find_package(Boost 1.35.0 REQUIRED) -add_definitions(${PNG_DEFINITIONS}) +add_definitions( + ${PNG_DEFINITIONS} + -DWITH_VERBOSE_OBS_MANAGER +) include_directories(SYSTEM ${SDL2_INCLUDE_DIR} diff --git a/src/observersmanager.hpp b/src/observersmanager.hpp index db59f0b..59c1c54 100644 --- a/src/observersmanager.hpp +++ b/src/observersmanager.hpp @@ -28,7 +28,7 @@ #include #include -#if defined(__GNUC__) && __GNUC__ >= 2 && !defined(NDEBUG) +#if defined (WITH_VERBOSE_OBS_MANAGER) && defined(__GNUC__) && __GNUC__ >= 2 && !defined(NDEBUG) # define OBS_MANAGER_LOG #endif