From 646c49f8476de91cec9157b9a56e265606cfdd88 Mon Sep 17 00:00:00 2001 From: Philippe Tillet Date: Tue, 25 Feb 2020 12:52:23 -0800 Subject: [PATCH] [CMAKE] Fixed issue in LLVM link directory --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bdb9e1ce7..9fbefda74 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,6 +40,6 @@ endif() # Triton file(GLOB_RECURSE LIBTRITON_SRC lib/*.cc) add_library(triton SHARED ${LIBTRITON_SRC} ${PYTHON_SRC}) -link_directories(${LLVM_LIBRARY_DIRS}) +target_link_directories(triton PRIVATE ${LLVM_LIBRARY_DIRS}) target_link_libraries(triton ${LLVM_LIBRARIES})