From: Marcel Metz Date: Mon, 7 Mar 2016 20:20:21 +0000 (+0100) Subject: CMake: Add vorbisenc.c to vorbis target for WIN32 builds X-Git-Tag: v1.3.6~13 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Flibvorbis.git;a=commitdiff_plain;h=6192354e8059784de723767204c09450c36cee28 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 --- diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index a682ed4..e808e77 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)