summaryrefslogtreecommitdiff
path: root/media-sound/snapcast/files/snapcast-0.34.0-opt_soxr.patch
blob: 31e919bac048ad6bb869bb001516bc55d010a47f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
avoid automagic for soxr
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -256,12 +256,10 @@ if(NOT WIN32 AND NOT ANDROID)
     endif()
   endif()
 
-  pkg_search_module(SOXR soxr)
-  if(SOXR_FOUND)
+  if(BUILD_WITH_SOXR)
+    pkg_search_module(SOXR REQUIRED soxr)
     add_compile_definitions(HAS_SOXR)
-  else()
-    message(STATUS "soxr not found")
-  endif(SOXR_FOUND)
+  endif()
 
   if(BUILD_WITH_FLAC)
     pkg_search_module(FLAC REQUIRED flac)