Skip to content
Snippets Groups Projects
Commit 5ecfa9da authored by Radosław Warzocha's avatar Radosław Warzocha
Browse files

ANTLR linking problem solution (#5297)

parent 58310ac5
No related merge requests found
......@@ -21,7 +21,7 @@ else (ANTLR_INCLUDE_DIR AND ANTLR_LIBRARY)
# Look for the library.
find_library(
ANTLR_LIBRARY
NAMES antlr
NAMES antlr-pic
DOC "Library to link against for ANTLR")
mark_as_advanced(ANTLR_LIBRARY)
......
......@@ -24,10 +24,8 @@ set(LIBS ${LIBS} ${ICU_LIBRARIES} ${ICU_I18N_LIBRARIES})
find_package(ANTLR REQUIRED)
include_directories(${ANTLR_INCLUDE_DIR})
if(WIN32)
# On UNIX this should be included only in final executables
set(LIBS ${LIBS} ${ANTLR_LIBRARY})
endif(WIN32)
set(LIBS ${LIBS} ${ANTLR_LIBRARY})
SET(libwccl_STAT_SRC
exception.cpp
......@@ -186,4 +184,3 @@ set_target_properties(wccl PROPERTIES
PATTERN "build" EXCLUDE
PATTERN "CMake*" EXCLUDE
)
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment