aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/antlr.cmake
diff options
context:
space:
mode:
authorzhukoff-pavel <zhukoff-pavel@yandex-team.com>2023-09-19 11:48:49 +0300
committerzhukoff-pavel <zhukoff-pavel@yandex-team.com>2023-09-19 12:13:05 +0300
commit06e08ea751815831c479c6cff0941c845464b2c2 (patch)
treeca38d8f7f52fb6ae6327da1ecbc62db182796a38 /cmake/antlr.cmake
parent1176941d342dc85b5c1cba12648cb0d568c5b533 (diff)
downloadydb-06e08ea751815831c479c6cff0941c845464b2c2.tar.gz
Move antlr3 to contrib/
Diffstat (limited to 'cmake/antlr.cmake')
-rw-r--r--cmake/antlr.cmake31
1 files changed, 0 insertions, 31 deletions
diff --git a/cmake/antlr.cmake b/cmake/antlr.cmake
deleted file mode 100644
index d203fd9c88..0000000000
--- a/cmake/antlr.cmake
+++ /dev/null
@@ -1,31 +0,0 @@
-function(ensure_antlr)
- if(NOT ANTLR3_EXECUTABLE)
- find_program(ANTLR3_EXECUTABLE
- NAMES antlr3)
- if (NOT ANTLR3_EXECUTABLE)
- message(FATAL_ERROR "Unable to find antlr3 program. Please install antlr3 and make sure executable file present in the $PATH env.")
- endif()
- endif()
-endfunction()
-
-function(run_antlr)
- ensure_antlr()
- set(options "")
- set(oneValueArgs WORKING_DIRECTORY)
- set(multiValueArgs OUTPUT DEPENDS ANTLER_ARGS)
- cmake_parse_arguments(
- RUN_ANTLR
- "${options}"
- "${oneValueArgs}"
- "${multiValueArgs}"
- ${ARGN}
- )
-
- add_custom_command(
- OUTPUT ${RUN_ANTLR_OUTPUT}
- COMMAND ${ANTLR3_EXECUTABLE} ${RUN_ANTLR_ANTLER_ARGS}
- WORKING_DIRECTORY ${RUN_ANTLR_WORKING_DIRECTORY}
- DEPENDS ${RUN_ANTLR_DEPENDS}
- )
-
-endfunction()