1 diff --git a/CMakeLists.txt b/CMakeLists.txt
2 index b7320bb..d7169da 100644
5 @@ -143,25 +143,6 @@ check_function_exists (strtoull HAVE_STRTOULL)
6 check_function_exists (strtoimax HAVE_STRTOIMAX)
7 check_function_exists (strtoumax HAVE_STRTOUMAX)
9 -set(ANTLR_JAR_FILENAME "antlr-4.13.2-complete.jar")
10 -get_filename_component(SOURCE_PARENT_DIR ${CMAKE_SOURCE_DIR} DIRECTORY)
11 -set(LINUX_RES_BIN_DIR ${SOURCE_PARENT_DIR}/linux-res/bin)
12 -message("WITH_ANTLR_JAR: ${WITH_ANTLR_JAR}")
14 - get_filename_component(ANTLR_JAR_USER_DIR ${WITH_ANTLR_JAR} DIRECTORY)
15 - find_path(ANTLR_JAR_PATH ${ANTLR_JAR_FILENAME} ${LINUX_RES_BIN_DIR} ${ANTLR_JAR_USER_DIR})
17 - find_path(ANTLR_JAR_PATH ${ANTLR_JAR_FILENAME} ${LINUX_RES_BIN_DIR})
18 -endif(WITH_ANTLR_JAR)
20 -if(ANTLR_JAR_PATH AND Java_JAVA_EXECUTABLE)
21 - set(ANTLR_JAR_PATH ${ANTLR_JAR_PATH}/${ANTLR_JAR_FILENAME})
22 - message(STATUS "ANTLR jar: " ${ANTLR_JAR_PATH})
24 - message(WARNING ${ANTLR_JAR_FILENAME} " or java runtime wasn't found which is required if you'd like to rebuild Lexer and Parser files")
29 if (NOT LIB_INSTALL_DIR)
30 set(LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib")