make log4cpp optional
This commit is contained in:
+1
-1
@@ -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
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user