fix library file names when building with MinGW and CMake

We have applied this patch to the mingw-w64-fluidsynth package [1] in
MSYS2 to recieve the same library file names when building with CMake
as we got when building with Autotools.

[1] https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-fluidsynth
This commit is contained in:
Fabian Greffrath 2017-11-10 13:20:14 +01:00
parent df1c9a3e5c
commit 9a205c0b8b

View file

@ -268,6 +268,15 @@ elseif ( OS2 )
VERSION ${LIB_VERSION_INFO}
SOVERSION ${LIB_VERSION_CURRENT}
)
elseif ( WIN32 )
set_target_properties ( libfluidsynth
PROPERTIES
ARCHIVE_OUTPUT_NAME "fluidsynth"
PREFIX "lib"
OUTPUT_NAME "fluidsynth-${LIB_VERSION_CURRENT}"
VERSION ${LIB_VERSION_INFO}
SOVERSION ${LIB_VERSION_CURRENT}
)
else ( MACOSX_FRAMEWORK )
set_target_properties ( libfluidsynth
PROPERTIES