From: robiwan Date: Fri, 29 Jun 2012 11:45:21 +0000 (+0000) Subject: Added option to CMakeLists.txt to enable PA debug output X-Git-Tag: pa_stable_v19_20140130_r1919~56 X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=3d13eb88becdb53ef4d025f0c3deb4abf7371b6f;p=portaudio Added option to CMakeLists.txt to enable PA debug output --- diff --git a/CMakeLists.txt b/CMakeLists.txt index febdf2f..ad76118 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,6 +20,11 @@ SET(LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/bin/Win32) ENDIF(PA_CONFIG_LIB_OUTPUT_PATH) ENDIF(CMAKE_CL_64) +OPTION(PA_ENABLE_DEBUG_OUTPUT "Enable debug output for Portaudio" OFF) +IF(PA_ENABLE_DEBUG_OUTPUT) +ADD_DEFINITIONS(-DPA_ENABLE_DEBUG_OUTPUT) +ENDIF(PA_ENABLE_DEBUG_OUTPUT) + IF(WIN32 AND MSVC) OPTION(PA_DLL_LINK_WITH_STATIC_RUNTIME "Link with static runtime libraries (minimizes runtime dependencies)" ON) IF(PA_DLL_LINK_WITH_STATIC_RUNTIME)