瀏覽代碼

linux-pulseaudio: Add include directory to cmake

Add the include directories found by cmake to the pulseaudio plugin.
This allows for the plugin to compile when the pulseaudio headers were
found in a directory that is not normally in the search path of the
compiler (e.g. /usr/local/include)
fryshorts 10 年之前
父節點
當前提交
5983b506e9
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      plugins/linux-pulseaudio/CMakeLists.txt

+ 4 - 1
plugins/linux-pulseaudio/CMakeLists.txt

@@ -13,7 +13,10 @@ elseif(NOT PULSEAUDIO_FOUND)
 	return()
 endif()
 
-include_directories(SYSTEM "${CMAKE_SOURCE_DIR}/libobs")
+include_directories(
+	SYSTEM "${CMAKE_SOURCE_DIR}/libobs"
+	${PULSEAUDIO_INCLUDE_DIR}
+)
 
 set(linux-pulseaudio_SOURCES
 	linux-pulseaudio.c