From f96b6dfeed0c4d6ded4f655a75d8443d3564bf31 Mon Sep 17 00:00:00 2001 From: Daniel Porter Date: Tue, 15 Sep 2020 17:53:23 +0100 Subject: [PATCH] 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 --- cmake/Modules/FindLibfdk.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/Modules/FindLibfdk.cmake b/cmake/Modules/FindLibfdk.cmake index 4930d81ef..20544e91a 100644 --- a/cmake/Modules/FindLibfdk.cmake +++ b/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