From 1300d48af4752037feac4fae7c3c64187cc0a5a8 Mon Sep 17 00:00:00 2001 From: Tom Rondeau <trondeau@vt.edu> Date: Wed, 13 Jun 2012 13:53:45 -0400 Subject: log: fixed gr_log to be usable in Python. Works with log4cxx installed and not installed. --- gnuradio-core/src/lib/swig/CMakeLists.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'gnuradio-core/src/lib/swig') diff --git a/gnuradio-core/src/lib/swig/CMakeLists.txt b/gnuradio-core/src/lib/swig/CMakeLists.txt index f7af17b2d6..ab5faa04d4 100644 --- a/gnuradio-core/src/lib/swig/CMakeLists.txt +++ b/gnuradio-core/src/lib/swig/CMakeLists.txt @@ -42,10 +42,9 @@ set(GR_SWIG_LIBRARIES # Only use if log4cxx is installed # Define ENABLE_GR_LOG for the .i file to ignore it. -#if(ENABLE_GR_LOG) -# add_definitions(-DENABLE_GR_LOG) -# SET(GR_SWIG_FLAGS "-DENABLE_GR_LOG") -#endif(ENABLE_GR_LOG) +if(ENABLE_GR_LOG) + SET(GR_SWIG_FLAGS "-DENABLE_GR_LOG") +endif(ENABLE_GR_LOG) ######################################################################## # Build and install the swig targets -- cgit v1.2.3