--- lib/CMakeLists.txt | 30 +++++++++++++++--------------- 1 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 186cdfa..aaec1ec 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -66,22 +66,22 @@ if ( CMAKE_SYSTEM_NAME STREQUAL "Linux" ) add_definitions ( -D_GNU_SOURCE ) endif ( CMAKE_SYSTEM_NAME STREQUAL "Linux" ) -option ( ENABLE_DEBUG_MESSAGES "Enables debug messages printed during runtime" ) -if ( ENABLE_DEBUG_MESSAGES ) - set ( DEBUG_LEVEL 1 CACHE STRING "Amount of debug message (1-4)" ) - list ( APPEND openobex_COMPILE_DEFINITIONS OBEX_DEBUG=${DEBUG_LEVEL} ) - if ( NOT CMAKE_SYSTEM_NAME STREQUAL "Windows" ) - option ( DEBUG_USE_SYSLOG "Use SysLog facility instead of stderr for debug messages" ) - endif ( NOT CMAKE_SYSTEM_NAME STREQUAL "Windows" ) - if ( DEBUG_USE_SYSLOG ) - list ( APPEND openobex_COMPILE_DEFINITIONS OBEX_SYSLOG ) - endif ( DEBUG_USE_SYSLOG ) -endif ( ENABLE_DEBUG_MESSAGES ) - -option ( ENABLE_DUMP_MESSAGES "Enables dumping of data" ) -if ( ENABLE_DUMP_MESSAGES ) - list ( APPEND openobex_COMPILE_DEFINITIONS OBEX_DUMP=3 ) -endif ( ENABLE_DUMP_MESSAGES ) +if ( NOT OBEX_DEBUG ) + set ( OBEX_DEBUG 0 CACHE STRING "Amount of debug message (1-4)" ) +endif ( NOT OBEX_DEBUG ) +list ( APPEND openobex_COMPILE_DEFINITIONS OBEX_DEBUG=${OBEX_DEBUG} ) + +if ( NOT CMAKE_SYSTEM_NAME STREQUAL "Windows" ) + option ( OBEX_DEBUG_SYSLOG "Use SysLog facility instead of stderr for debug messages" ) + if ( OBEX_DEBUG_SYSLOG ) + list ( APPEND openobex_COMPILE_DEFINITIONS OBEX_DEBUG_SYSLOG ) + endif ( OBEX_DEBUG_SYSLOG ) +endif ( NOT CMAKE_SYSTEM_NAME STREQUAL "Windows" ) + +if ( NOT OBEX_DUMP ) + set ( OBEX_DUMP 0 CACHE STRING "Tx/Rx message dump" ) +endif ( NOT OBEX_DUMP ) +list ( APPEND openobex_COMPILE_DEFINITIONS OBEX_DUMP=${OBEX_DUMP} ) if ( OPENOBEX_IRDA ) list ( APPEND SOURCES -- 1.7.5.4 ------------------------------------------------------------------------------ Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey _______________________________________________ Openobex-users mailing list Openobex-users@lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/openobex-users