From f52636a0f68c61251bcced427d6b6be239411082 Mon Sep 17 00:00:00 2001 From: Kleis Auke Wolthuizen Date: Wed, 18 Oct 2023 11:25:41 +0200 Subject: [PATCH] CMake: correctly detect `AOM_USAGE_GOOD_QUALITY` aom could be installed in a non-standard prefix, preventing the aom encoder from being used. --- cmake/modules/FindAOM.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/modules/FindAOM.cmake b/cmake/modules/FindAOM.cmake index c94493a782..61c5961b11 100644 --- a/cmake/modules/FindAOM.cmake +++ b/cmake/modules/FindAOM.cmake @@ -9,7 +9,9 @@ find_path(AOM_INCLUDE_DIR PATH_SUFFIXES AOM ) -check_symbol_exists(AOM_USAGE_GOOD_QUALITY ${AOM_INCLUDE_DIR}/aom/aom_encoder.h aom_usage_flag_exists) +list(APPEND CMAKE_REQUIRED_INCLUDES ${AOM_INCLUDE_DIR}) +check_symbol_exists(AOM_USAGE_GOOD_QUALITY aom/aom_encoder.h aom_usage_flag_exists) +unset(CMAKE_REQUIRED_INCLUDES) find_library(AOM_LIBRARY NAMES libaom aom