diff options
| author | Marvin W <git@larma.de> | 2025-01-26 12:02:49 +0100 |
|---|---|---|
| committer | Marvin W <git@larma.de> | 2025-02-22 21:06:26 +0100 |
| commit | 1c365daa14e0e11bb4931b0c7891a781c5fc7084 (patch) | |
| tree | 0e045a92a5466be5509b7d9312d53a811c246f5f /cmake/PkgConfigWithFallback.cmake | |
| parent | f796286650e4ad862b147e484d528ca56cf5e0e6 (diff) | |
Voice processor: add support for webrtc-audio-processing 1.x and 2.x
Diffstat (limited to 'cmake/PkgConfigWithFallback.cmake')
| -rw-r--r-- | cmake/PkgConfigWithFallback.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
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) |
