From 3d40b243f6612f9526d58e9394e5cf950eb313b1 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Fri, 14 Jan 2022 04:39:17 +0400 Subject: [PATCH] Use openal-soft's cmake config rather than pkg-config file --- external/openal/CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/external/openal/CMakeLists.txt b/external/openal/CMakeLists.txt index 1e10bb7..6a0450e 100644 --- a/external/openal/CMakeLists.txt +++ b/external/openal/CMakeLists.txt @@ -15,9 +15,8 @@ if (DESKTOP_APP_USE_PACKAGED) return() endif() - find_package(PkgConfig REQUIRED) - pkg_check_modules(OPENAL REQUIRED IMPORTED_TARGET openal) - target_link_libraries(external_openal INTERFACE PkgConfig::OPENAL) + find_package(OpenAL REQUIRED CONFIG) + target_link_libraries(external_openal INTERFACE OpenAL::OpenAL) return() elseif (WIN32) target_include_directories(external_openal SYSTEM