From e59b2ba1286d21ad57a279094dec236255628bea Mon Sep 17 00:00:00 2001 From: Andrej Rode Date: Thu, 6 Apr 2017 10:11:10 -0700 Subject: utils: add cmake switch to disable fastpath logging --- host/cmake/Modules/UHDLog.cmake | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'host/cmake/Modules') 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}) -- cgit v1.2.3