Description: Build with Debian's antlr instead of the embedded copy in src/antlr
Author: Axel Beckert <abe@debian.org>
Last-Update: 2015-12-23
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -266,9 +266,7 @@
 widget.hpp
 )
 
-add_subdirectory(antlr)
-
-include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/src/antlr ${CMAKE_BINARY_DIR})
+include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/src ${CMAKE_BINARY_DIR})
 link_directories(${LINK_DIRECTORIES})
 
 SET(CMAKE_SKIP_RPATH TRUE)
@@ -290,8 +288,7 @@
 	target_link_libraries(gdl readline)
 endif (READLINE)
 
-add_dependencies(gnudatalanguage antlr) # be sure that antlr is built before gdl
-target_link_libraries(gnudatalanguage antlr) # link antlr against gdl
+target_link_libraries(gnudatalanguage antlr-pic)
 if (MINGW)
 target_link_libraries(gnudatalanguage ws2_32)
 endif (MINGW)
