diff --git a/libs/CMakeLists.txt b/libs/CMakeLists.txt index 06b862ffa..8b2b94530 100644 --- a/libs/CMakeLists.txt +++ b/libs/CMakeLists.txt @@ -84,6 +84,8 @@ import_external_library(antlr4 STATIC SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/antlr4/runtime/Cpp CMAKE_ARGS # http://stackoverflow.com/questions/37096062/get-a-basic-c-program-to-compile-using-clang-on-ubuntu-16/38385967#38385967 -DWITH_LIBCXX=OFF # because of debian bug + -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=true + BUILD_COMMAND $(MAKE) antlr4_static # Make a License.txt out of thin air, so that antlr4.6 knows how to build. # When we upgrade antlr, this will no longer be needed. INSTALL_COMMAND touch ${CMAKE_CURRENT_SOURCE_DIR}/antlr4/runtime/Cpp/License.txt diff --git a/libs/setup.sh b/libs/setup.sh index dfe5a37d1..b0e04c14e 100755 --- a/libs/setup.sh +++ b/libs/setup.sh @@ -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 /' 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