summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Metz <mmetz@adrian-broher.net>2016-03-07 21:20:21 +0100
committerRalph Giles <giles@thaumas.net>2017-07-22 09:29:38 -0700
commit6192354e8059784de723767204c09450c36cee28 (patch)
tree396a2fae6cc084ca13d6bbc145533bff7d8edd44
parent68ebc894325f56ae1d860d49626419cf66ea171b (diff)
downloadlibvorbis-git-6192354e8059784de723767204c09450c36cee28.tar.gz
CMake: Add vorbisenc.c to vorbis target for WIN32 builds
On Windows the vorbis shared library exports some symbols defined in the vorbisen.c file. To allow error free linking this file should be added to to the VORBIS_SOURCES. Signed-off-by: Ralph Giles <giles@thaumas.net>
-rw-r--r--lib/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
index a682ed4c..e808e772 100644
--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
@@ -57,6 +57,10 @@ set(VORBISENC_SOURCES
vorbisenc.c
)
+if(WIN32)
+ list(APPEND VORBIS_SOURCES vorbisenc.c)
+endif()
+
if(MSVC)
list(APPEND VORBIS_SOURCES ../win32/vorbis.def)
list(APPEND VORBISENC_SOURCES ../win32/vorbisenc.def)