Build only static Antlr4 library

Reviewers: teon.banek

Reviewed By: teon.banek

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D2031
This commit is contained in:
Matej Ferencevic
2019-05-10 15:01:57 +02:00
parent 017dec8c0e
commit dc3f902db0
2 changed files with 4 additions and 0 deletions

View File

@@ -52,6 +52,8 @@ antlr4_tag="aacd2a2c95816d8dc1c05814051d631bfec4cf3e" # v4.6
clone git://deps.memgraph.io/antlr4.git antlr4 $antlr4_tag
# fix missing include
sed -i 's/^#pragma once/#pragma once\n#include <functional>/' antlr4/runtime/Cpp/runtime/src/support/CPPUtils.h
# remove shared library from install dependencies
sed -i 's/install(TARGETS antlr4_shared/install(TARGETS antlr4_shared OPTIONAL/' antlr4/runtime/Cpp/runtime/CMakeLists.txt
# cppitertools
# Use our fork that uses experimental/optional instead of unique_ptr in