[MSYS2] CMake does not create import libraries for executables.
I noticed this problem when compiling Audacity for Windows with "MSYS Makefiles" generator.
When compiling the final executable, it is expected that an import library libAudacity.dll.a
is created from the executable Audacity.exe
. Unfortunatey, this does not happen because the option -Wl,--out-implib,../lib/audacity/libAudacity.dll.a
is not included when linking. Instead, when using the same build scripts under Cygwin with mingw-w64 cross compiler and "Unix Makefiles" generator, the option CMAKE_ENABLE_EXPORTS is respected.