File: optional-lpcnetfreedv

package info (click to toggle)
freedv 1.8.7-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 26,088 kB
  • sloc: cpp: 14,400; ansic: 5,928; sh: 266; python: 42; makefile: 11
file content (28 lines) | stat: -rw-r--r-- 1,065 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From: "A. Maitland Bottoms" <bottoms@debian.org>
Subject: optional lpcnetfreedv

Debian codec2 libraries contain lpcnetfreedv modes,
having a separate lpcnetfreedv library is optional.

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -308,7 +308,7 @@
         get_target_property(CODEC2_INCLUDE_DIRS codec2 INTERFACE_INCLUDE_DIRECTORIES)
         message(STATUS "  codec2 library: ${CODEC2_LIBRARY}")
         message(STATUS "  codec2 headers: ${CODEC2_INCLUDE_DIRS}")
-        find_package(lpcnetfreedv REQUIRED)
+        find_package(lpcnetfreedv)
     else()
         # Try to find manually
         find_path(CODEC2_INCLUDE_DIRS codec2.h
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -81,7 +81,7 @@
 if(APPLE)
 target_link_libraries(FreeDV fdv_audio fdv_audio_pipeline fdv_sox lpcnetfreedv codec2)
 else(APPLE)
-target_link_libraries(freedv fdv_audio fdv_audio_pipeline fdv_sox lpcnetfreedv codec2)
+target_link_libraries(freedv fdv_audio fdv_audio_pipeline fdv_sox codec2)
 endif(APPLE)
 
 # Add build dependencies for internally built external libraries.