From f53734ebd1ee5af6fbf3f86bb74ef1fbd890b6e5 Mon Sep 17 00:00:00 2001 From: 0x9047 Date: Thu, 15 Aug 2024 18:44:52 +0800 Subject: [PATCH] Fix LLVM_INCLUDE_DIRS not set when passed with flags --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()