From 86f975d791c448434b5ef3f33935e0cdba4641a2 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sat, 3 Dec 2016 18:36:30 -0800 Subject: [PATCH] Conditionally include libiconv on windows --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 46a44ba..d3d7bf4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,3 +4,6 @@ include_directories(eb) link_directories(eb/eb/.libs jansson/lib) add_executable(zero-epwing main.c book.c font.c convert.c hooks.c) target_link_libraries(zero-epwing libm.a libeb.a libm.a libz.a libjansson.a) +if (WIN32) + target_link_libraries(zero-epwing libiconv.a) +endif (WIN32)