aboutsummaryrefslogtreecommitdiffstats
path: root/host/cmake/Modules/UHDLog.cmake
diff options
context:
space:
mode:
authorAndrej Rode <andrej.rode@ettus.com>2017-04-06 10:11:10 -0700
committerMartin Braun <martin.braun@ettus.com>2017-04-06 13:39:31 -0700
commite59b2ba1286d21ad57a279094dec236255628bea (patch)
tree253aaa3f6e4c206718f8b107d27fbe96bdf3023d /host/cmake/Modules/UHDLog.cmake
parentb8628dad4667649ce7f377e869d91fdcd90e10a2 (diff)
downloaduhd-e59b2ba1286d21ad57a279094dec236255628bea.tar.gz
uhd-e59b2ba1286d21ad57a279094dec236255628bea.tar.bz2
uhd-e59b2ba1286d21ad57a279094dec236255628bea.zip
utils: add cmake switch to disable fastpath logging
Diffstat (limited to 'host/cmake/Modules/UHDLog.cmake')
-rw-r--r--host/cmake/Modules/UHDLog.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/host/cmake/Modules/UHDLog.cmake b/host/cmake/Modules/UHDLog.cmake
index d5612f1ed..19b4c39ef 100644
--- a/host/cmake/Modules/UHDLog.cmake
+++ b/host/cmake/Modules/UHDLog.cmake
@@ -50,6 +50,11 @@ ELSE()
ENDIF()
ENDIF()
+SET(UHD_LOG_FASTPATH_DISABLE "OFF" CACHE BOOL "Disable printing of fastpath logging symbols to stderr (DOSU)")
+IF(UHD_LOG_FASTPATH_DISABLE)
+ ADD_DEFINITIONS(-DUHD_LOG_FASTPATH_DISABLE)
+ENDIF()
+
SET(UHD_LOG_FILE "" CACHE FILE "Set UHD log file to a file in a existing directory")
IF(NOT UHD_LOG_FILE STREQUAL "")
ADD_DEFINITIONS(-DUHD_LOG_FILE=${UHD_LOG_FILE})