浏览代码

cmake: Fix finding libfdk header path

A generally accepted path for DepsPath or LibfdkPath is the parent
directory that includes the 'bin' and 'include' directories. This fix
ensures FindLibfdk.cmake acts like other cmake helper scripts.

Closes obsproject/obs-studio#3474
Daniel Porter 5 年之前
父节点
当前提交
f96b6dfeed
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      cmake/Modules/FindLibfdk.cmake

+ 3 - 1
cmake/Modules/FindLibfdk.cmake

@@ -32,7 +32,9 @@ find_path(Libfdk_INCLUDE_DIR
 		${DepsPath}
 		${_LIBFDK_INCLUDE_DIRS}
 	PATHS
-		/usr/include /usr/local/include /opt/local/include /sw/include)
+		/usr/include /usr/local/include /opt/local/include /sw/include
+	PATH_SUFFIXES
+		include)
 
 find_library(Libfdk_LIB
 	NAMES ${_LIBFDK_LIBRARIES} fdk-aac libfdk-aac