From 9a205c0b8b58158039cbf4def1bcbdba125685ed Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Fri, 10 Nov 2017 13:20:14 +0100 Subject: [PATCH] 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 --- src/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6ffd6fd2..3d02595f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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