Prechádzať zdrojové kódy

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 rokov pred
rodič
commit
f96b6dfeed
1 zmenil súbory, kde vykonal 3 pridanie a 1 odobranie
  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