diff options
author | Marcel Metz <mmetz@adrian-broher.net> | 2016-03-07 21:20:21 +0100 |
---|---|---|
committer | Ralph Giles <giles@thaumas.net> | 2017-07-22 09:29:38 -0700 |
commit | 6192354e8059784de723767204c09450c36cee28 (patch) | |
tree | 396a2fae6cc084ca13d6bbc145533bff7d8edd44 | |
parent | 68ebc894325f56ae1d860d49626419cf66ea171b (diff) | |
download | libvorbis-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.txt | 4 |
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) |