make log4cpp optional

This commit is contained in:
Bastian Bloessl
2014-10-08 14:10:03 +02:00
parent 6693fe1f2e
commit 32d75b3675
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -130,7 +130,7 @@ list(APPEND gr_ieee802_11_libs
add_library(gnuradio-ieee802_11 SHARED ${gr_ieee802_11_sources})
add_dependencies(gnuradio-ieee802_11 ieee802_11_generated_includes)
target_link_libraries(gnuradio-ieee802_11 ${gr_ieee802_11_libs} log4cpp)
target_link_libraries(gnuradio-ieee802_11 ${gr_ieee802_11_libs})
set_target_properties(gnuradio-ieee802_11 PROPERTIES DEFINE_SYMBOL "gnuradio_ieee802_11_EXPORTS")
########################################################################
+1 -1
View File
@@ -25,7 +25,7 @@
#define dout d_debug && std::cout
#ifdef HAVE_LOG4CPP
#if defined(HAVE_LOG4CPP) && defined(ENABLE_GR_LOG)
#define mylog(msg) do { if(d_log) { *d_logger << log4cpp::Priority::INFO << msg << log4cpp::eol; }} while(0);
#else
#define mylog(msg) do { d_log && std::cout << msg << std::endl; } while(0);