From 6192354e8059784de723767204c09450c36cee28 Mon Sep 17 00:00:00 2001 From: Marcel Metz Date: Mon, 7 Mar 2016 21:20:21 +0100 Subject: [PATCH] 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 --- lib/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.7.4