Export public function on MinGW platform
authorevpobr <evpobr@gmail.com>
Wed, 8 Apr 2020 05:24:39 +0000 (10:24 +0500)
committerRalph Giles <giles@thaumas.net>
Wed, 8 Apr 2020 23:28:40 +0000 (16:28 -0700)
MinGW produces DLLs, but exports nothing.

lib/CMakeLists.txt

index d198105..7e8ca45 100644 (file)
@@ -61,7 +61,7 @@ if(WIN32)
     list(APPEND VORBIS_SOURCES vorbisenc.c)
 endif()
 
-if(MSVC)
+if(WIN32)
     list(APPEND VORBIS_SOURCES ../win32/vorbis.def)
     list(APPEND VORBISENC_SOURCES ../win32/vorbisenc.def)
     list(APPEND VORBISFILE_SOURCES ../win32/vorbisfile.def)