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