Make the verbosity of the observers manager switchable from the cmake file.

This commit is contained in:
King_DuckZ 2014-07-17 16:53:14 +02:00
parent 06e3bfdeb7
commit 250600d8b2
2 changed files with 5 additions and 2 deletions

View file

@ -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}

View file

@ -28,7 +28,7 @@
#include <tree.hh>
#include <boost/iterator/transform_iterator.hpp>
#if defined(__GNUC__) && __GNUC__ >= 2 && !defined(NDEBUG)
#if defined (WITH_VERBOSE_OBS_MANAGER) && defined(__GNUC__) && __GNUC__ >= 2 && !defined(NDEBUG)
# define OBS_MANAGER_LOG
#endif