| 1 |
From: "A. Maitland Bottoms" <[email protected]> |
| 2 |
Subject: optional lpcnetfreedv |
| 3 |
|
| 4 |
Debian codec2 libraries contain lpcnetfreedv modes, |
| 5 |
having a separate lpcnetfreedv library is optional. |
| 6 |
|
| 7 |
--- a/CMakeLists.txt |
| 8 |
+++ b/CMakeLists.txt |
| 9 |
@@ -308,7 +308,7 @@ |
| 10 |
get_target_property(CODEC2_INCLUDE_DIRS codec2 INTERFACE_INCLUDE_DIRECTORIES) |
| 11 |
message(STATUS " codec2 library: ${CODEC2_LIBRARY}") |
| 12 |
message(STATUS " codec2 headers: ${CODEC2_INCLUDE_DIRS}") |
| 13 |
- find_package(lpcnetfreedv REQUIRED) |
| 14 |
+ find_package(lpcnetfreedv) |
| 15 |
else() |
| 16 |
# Try to find manually |
| 17 |
find_path(CODEC2_INCLUDE_DIRS codec2.h |
| 18 |
--- a/src/CMakeLists.txt |
| 19 |
+++ b/src/CMakeLists.txt |
| 20 |
@@ -81,7 +81,7 @@ |
| 21 |
if(APPLE) |
| 22 |
target_link_libraries(FreeDV fdv_audio fdv_audio_pipeline fdv_reporting fdv_sox lpcnetfreedv codec2) |
| 23 |
else(APPLE) |
| 24 |
-target_link_libraries(freedv fdv_audio fdv_audio_pipeline fdv_reporting fdv_sox lpcnetfreedv codec2) |
| 25 |
+target_link_libraries(freedv fdv_audio fdv_audio_pipeline fdv_reporting fdv_sox codec2) |
| 26 |
endif(APPLE) |
| 27 |
|
| 28 |
# Add build dependencies for internally built external libraries. |