From b485d43a45eec75b8cbc0ab966ab3c06b5e8bac8 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Fri, 23 Oct 2020 14:06:26 +0400 Subject: [PATCH] Opus headers are in opus subfolder --- external/opus/CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/external/opus/CMakeLists.txt b/external/opus/CMakeLists.txt index 4b452e5..527902b 100644 --- a/external/opus/CMakeLists.txt +++ b/external/opus/CMakeLists.txt @@ -29,7 +29,7 @@ else() elseif (APPLE AND NOT build_osx) target_include_directories(external_opus INTERFACE - /usr/local/macos/include + /usr/local/macos/include/opus ) set_target_properties(external_opus PROPERTIES IMPORTED_LOCATION /usr/local/macos/lib/libopus.a @@ -37,12 +37,16 @@ else() elseif (APPLE) target_include_directories(external_opus INTERFACE - /usr/local/include + /usr/local/include/opus ) set_target_properties(external_opus PROPERTIES IMPORTED_LOCATION /usr/local/lib/libopus.a ) else() + target_include_directories(external_opus + INTERFACE + /usr/local/include/opus + ) find_library(OPUS_LIBRARY libopus.a) set_target_properties(external_opus PROPERTIES IMPORTED_LOCATION "${OPUS_LIBRARY}"