From e8af95be9bc322412c647d702a477de53de46c6d Mon Sep 17 00:00:00 2001 From: Zachary Hall Date: Wed, 11 Dec 2024 16:33:27 -0800 Subject: [PATCH] Use pkgconfig version of fludsynth --- backends/playback/fluidsynth/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/backends/playback/fluidsynth/CMakeLists.txt b/backends/playback/fluidsynth/CMakeLists.txt index 21bead9..629c7a0 100644 --- a/backends/playback/fluidsynth/CMakeLists.txt +++ b/backends/playback/fluidsynth/CMakeLists.txt @@ -3,5 +3,7 @@ set(BACKEND_FLUIDSYNTH_INC ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DI add_playback_backend(fluidsynth_backend ${BACKEND_FLUIDSYNTH_SRC}) target_include_directories(fluidsynth_backend PRIVATE ${BACKEND_FLUIDSYNTH_INC}) find_package(OpenMP) -find_package(FluidSynth) -target_link_libraries(fluidsynth_backend PUBLIC OpenMP::OpenMP_CXX FluidSynth::libfluidsynth) +find_package(PkgConfig) +pkg_check_modules(fluidsynth fluidsynth IMPORTED_TARGET) + +target_link_libraries(fluidsynth_backend PUBLIC OpenMP::OpenMP_CXX PkgConfig::fluidsynth)