Browse Source

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 năm trước cách đây
mục cha
commit
f96b6dfeed
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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