Skip to content

Commit

Permalink
Correct cmake path hint
Browse files Browse the repository at this point in the history
  • Loading branch information
parcollet committed Feb 13, 2024
1 parent e6cb776 commit 7bf919c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
libclang-15-dev
libblas-dev
libomp-15-dev
clang-format-15
python3
python3-dev
python3-numpy
Expand Down
4 changes: 3 additions & 1 deletion share/cmake/Modules/clang_detection.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ set(LLVM_ROOT_DIR "${LLVM_ROOT_DIR_DEFAULT}") #CACHE PATH "LLVM installation dir

# Add the location of ClangConfig.cmake to CMake search paths (so that
# find_package can locate it)
list(PREPEND CMAKE_PREFIX_PATH "${LLVM_ROOT_DIR}/lib/cmake/clang/")
list(PREPEND CMAKE_PREFIX_PATH "${LLVM_ROOT_DIR}/lib/cmake/clang/") # For OS X
list(PREPEND CMAKE_PREFIX_PATH "${LLVM_ROOT_DIR}/cmake/clang/") # For Ubuntu
# We must find the proper LLVM config

find_package(LLVM REQUIRED CONFIG)
find_package(Clang REQUIRED CONFIG)
Expand Down

0 comments on commit 7bf919c

Please sign in to comment.