diff --git a/CMakeLists.txt b/CMakeLists.txt index f6501e43a..34e5c3761 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -903,6 +903,7 @@ if (NOT ENABLE_EXTERNAL_LIBRARIES OR (ENABLE_EXTERNAL_LIBRARIES STREQUAL "AUTO") find_package(GGMorse) find_package(LibInmarsatC) find_package(RNnoise) + find_package(FLAC) # Devices if(ENABLE_AIRSPY) diff --git a/cmake/Modules/FindFLAC.cmake b/cmake/Modules/FindFLAC.cmake index f6af1b52a..e75f67b62 100644 --- a/cmake/Modules/FindFLAC.cmake +++ b/cmake/Modules/FindFLAC.cmake @@ -11,7 +11,7 @@ IF(NOT FLAC_FOUND) ) FIND_LIBRARY( - FLAC_LIBRARY + FLAC_LIBRARIES NAMES FLAC libFLAC HINTS ${FLAC_DIR}/lib