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})