From b21d652f323d263b12c91da39134d23c91a3aca0 Mon Sep 17 00:00:00 2001 From: syb0rg Date: Sun, 7 Aug 2016 13:23:55 -0500 Subject: [PATCH] Fix ranlib no symbols problem --- src/libsphinxbase/util/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/libsphinxbase/util/CMakeLists.txt b/src/libsphinxbase/util/CMakeLists.txt index d98e11e7..865b3910 100644 --- a/src/libsphinxbase/util/CMakeLists.txt +++ b/src/libsphinxbase/util/CMakeLists.txt @@ -7,7 +7,6 @@ SET(SOURCES bio.c cmd_ln.c dtoa.c err.c - errno.c f2c_lite.c filename.c genrand.c @@ -26,5 +25,9 @@ SET(SOURCES bio.c slapack_lite.c strfuncs.c ) - + +if (WIN32) + set(SOURCES ${SOURCES} errno.c) +endif () + add_library(util OBJECT ${SOURCES}) \ No newline at end of file