From 885a675474d93ae4ef929de7520d3ac38ba39156 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 21 Apr 2019 14:20:34 +0200 Subject: [PATCH] Revert "Do not list `LLVM_LIBS` in the `target_link_libraries`." This breaks linking against shared LLVM. --- clang_delta/CMakeLists.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/clang_delta/CMakeLists.txt b/clang_delta/CMakeLists.txt index 6493abf..ab1dc42 100644 --- a/clang_delta/CMakeLists.txt +++ b/clang_delta/CMakeLists.txt @@ -242,11 +242,7 @@ add_executable(clang_delta git_version.h ) -# ENE, LLVM 6.0: LLVM_LIBS end up in the link command line anyway. I'm not -# quite sure why! But if you list LLVM_LIBS here, the `clang_delta' binary -# can end up with dynamic link errors when it runs (multiply defined symbols). -# -target_link_libraries(clang_delta ${CLANG_LIBS}) +target_link_libraries(clang_delta ${CLANG_LIBS} ${LLVM_LIBS}) # Custom target for running clang_delta tests # -- 2.21.0