Skip to content

Commit

Permalink
fix linkage
Browse files Browse the repository at this point in the history
  • Loading branch information
derselbst committed Feb 1, 2025
1 parent 8cdc46d commit 091fae1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -868,9 +868,6 @@ else ()
set ( includedir "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}" )
endif ()

if ( SDL3_SUPPORT )
target_link_libraries ( libfluidsynth-OBJ PUBLIC SDL3::SDL3 )
endif()

generate_pkgconfig_spec(fluidsynth.pc.in ${FluidSynth_BINARY_DIR}/fluidsynth.pc libfluidsynth-OBJ)
install ( FILES ${FluidSynth_BINARY_DIR}/fluidsynth.pc
Expand Down
4 changes: 4 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,10 @@ if ( SDL2_SUPPORT )
target_link_libraries ( libfluidsynth-OBJ PUBLIC ${SDL2_LIBRARIES} )
endif()

if ( SDL3_SUPPORT )
target_link_libraries ( libfluidsynth-OBJ PUBLIC SDL3::SDL3 )
endif()

if ( TARGET oboe::oboe AND OBOE_SUPPORT )
target_link_libraries ( libfluidsynth-OBJ PUBLIC oboe::oboe )
endif()
Expand Down

0 comments on commit 091fae1

Please sign in to comment.