Make the verbosity of the observers manager switchable from the cmake file.
This commit is contained in:
parent
06e3bfdeb7
commit
250600d8b2
2 changed files with 5 additions and 2 deletions
|
@ -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}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue