]> Repos - portaudio/commitdiff
Added option to CMakeLists.txt to enable PA debug output
authorrobiwan <robiwan@0f58301d-fd10-0410-b4af-bbb618454e57>
Fri, 29 Jun 2012 11:45:21 +0000 (11:45 +0000)
committerrobiwan <robiwan@0f58301d-fd10-0410-b4af-bbb618454e57>
Fri, 29 Jun 2012 11:45:21 +0000 (11:45 +0000)
CMakeLists.txt

index febdf2f017609a00a6373ba40c940baed55a571b..ad7611837d870a1658edb44de36439beecbe4ca8 100644 (file)
@@ -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)