From 1c365daa14e0e11bb4931b0c7891a781c5fc7084 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Sun, 26 Jan 2025 12:02:49 +0100 Subject: Voice processor: add support for webrtc-audio-processing 1.x and 2.x --- cmake/PkgConfigWithFallback.cmake | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cmake/PkgConfigWithFallback.cmake') diff --git a/cmake/PkgConfigWithFallback.cmake b/cmake/PkgConfigWithFallback.cmake index 9124bb35..40a3eb97 100644 --- a/cmake/PkgConfigWithFallback.cmake +++ b/cmake/PkgConfigWithFallback.cmake @@ -15,9 +15,15 @@ function(find_pkg_config_with_fallback name) # Try to find real file name of libraries foreach(lib ${${name}_PKG_CONFIG_LIBRARIES}) + if (${lib} STREQUAL "atomic") + set(${name}_${lib}_LIBRARY ${lib}) + mark_as_advanced(${name}_${lib}_LIBRARY) + continue() + endif() find_library(${name}_${lib}_LIBRARY ${lib} HINTS ${${name}_PKG_CONFIG_LIBRARY_DIRS}) mark_as_advanced(${name}_${lib}_LIBRARY) if(NOT ${name}_${lib}_LIBRARY) + message(STATUS "Required library for package " ${name} " not found: " ${lib}) unset(${name}_FOUND) endif(NOT ${name}_${lib}_LIBRARY) endforeach(lib) -- cgit v1.3