From d8f89ce7481ef91f6c2584ba575f04fc646cd065 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adam=20Wardy=C5=84ski?= <no@email>
Date: Sun, 14 Nov 2010 00:08:15 +0100
Subject: [PATCH] Do not link antlr lib on linux. Need to investigate error and
 why does it look like working without the linkage. It's still needed for win
 tho.

---
 libwccl/CMakeLists.txt | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/libwccl/CMakeLists.txt b/libwccl/CMakeLists.txt
index a34ff59..b69bbb4 100644
--- a/libwccl/CMakeLists.txt
+++ b/libwccl/CMakeLists.txt
@@ -19,7 +19,11 @@ set(LIBS ${LIBS} ${ICU_LIBRARIES} ${ICU_I18N_LIBRARIES})
 
 find_package(ANTLR REQUIRED)
 include_directories(${ANTLR_INCLUDE_DIR})
-set(LIBS ${LIBS} ${ANTLR_LIBRARY})
+
+if(WIN32)
+# TODO: there is some error when trying to link the lib on linux
+	set(LIBS ${LIBS} ${ANTLR_LIBRARY})
+endif(WIN32)
 
 SET(libwccl_STAT_SRC
 	exception.cpp
-- 
GitLab