diff --git a/CMakeLists.txt b/CMakeLists.txt index d8c375d74..5b553fa44 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -187,13 +187,13 @@ if(LLVM_INTERFACE) find_package(LLVM REQUIRED CONFIG) message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}") message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}") - include_directories(${LLVM_INCLUDE_DIRS}) if(LLVM_LINK_LLVM_DYLIB) set(LLVM_LIBRARIES LLVM) else() set(LLVM_LIBRARIES ${LLVM_AVAILABLE_LIBS}) endif() endif() + include_directories(${LLVM_INCLUDE_DIRS}) set(TRITON_LLVM_INTERFACE ON) endif()