-
Notifications
You must be signed in to change notification settings - Fork 296
Open
Labels
Description
FluidSynth version
2.4.8
Describe the bug
The msys2 mingw package only support linking to a shared fluidsynth when using FluidSynth::libfluidsynth
.
See mingw-w64-x86_64-fluidsynth: tar archive
FluidSynth-targets.cmake
only defines a SHARED IMPORTED
target. I can't see a STATIC IMPORTED
target.
Expected behavior
I can link to a static fluidsynth library, using find_package(FluidSynth REQUIRED CONFIG)
.
Steps to reproduce
- Install msys2 / mingw64
- Open mingw bash
- Install mingw-w64-x86_64-fluidsynth (+ gcc + cmake)
- Create a CMake script that uses FluidSynth, configure and build it
cmake_minimum_required(VERSION 3.20) project(use_fluidsynth) find_package(FluidSynth REQUIRED CONFIG) # FluidSynth::libfluidsynth is always SHARED add_executable(test test.c) target_link_libraries(test PRIVATE FluidSynth::libfluidsynth)
Additional context
No response