diff options
| author | Markus Wick <markus@selfnet.de> | 2021-04-08 23:49:32 +0200 |
|---|---|---|
| committer | Markus Wick <markus@selfnet.de> | 2021-04-08 23:49:32 +0200 |
| commit | 5096ed5e0ab91254a29a58234d1df71b4065745f (patch) | |
| tree | cd7ca8a690d42792f753a300c9ffcc0c9151629b /externals/CMakeLists.txt | |
| parent | dfac2e2d25c18e96a437561e6528b92a82887b32 (diff) | |
externals: Search for shared opus installation.
We had used conan for opus before, but there was a bug in the AVX detection.
However we still had the Findopus.cmake file within the repository, but not used.
This patch reenables the Findopus helper and prefer the system wide installation of opus.
Diffstat (limited to 'externals/CMakeLists.txt')
| -rw-r--r-- | externals/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt index 851c282b4..891a47c3c 100644 --- a/externals/CMakeLists.txt +++ b/externals/CMakeLists.txt @@ -97,4 +97,8 @@ if (ENABLE_WEB_SERVICE) endif() # Opus -add_subdirectory(opus) +find_package(opus 1.3) +if (NOT opus_FOUND) + message(STATUS "opus 1.3 or newer not found, falling back to externals") + add_subdirectory(opus EXCLUDE_FROM_ALL) +endif() |
