Skip to content

Commit

Permalink
Merge pull request #1351 from 0x9047/patch-1
Browse files Browse the repository at this point in the history
Fix LLVM_INCLUDE_DIRS not set when passed with flags
  • Loading branch information
JonathanSalwan authored Aug 15, 2024
2 parents 0c0a7d5 + f53734e commit 4770a26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 4770a26

Please sign in to comment.