Skip to content

Commit

Permalink
Fix LLVM_INCLUDE_DIRS not set when passed with flags
Browse files Browse the repository at this point in the history
  • Loading branch information
0x9047 authored Aug 15, 2024
1 parent 0c0a7d5 commit f53734e
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 f53734e

Please sign in to comment.