From 7bf919c515e04d9ff2ab3d360909048da672fe66 Mon Sep 17 00:00:00 2001 From: Olivier Parcollet Date: Mon, 12 Feb 2024 22:48:23 -0500 Subject: [PATCH] Correct cmake path hint --- .github/workflows/build.yml | 1 + share/cmake/Modules/clang_detection.cmake | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1b68dd4..4b9a7eb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,6 +37,7 @@ jobs: libclang-15-dev libblas-dev libomp-15-dev + clang-format-15 python3 python3-dev python3-numpy diff --git a/share/cmake/Modules/clang_detection.cmake b/share/cmake/Modules/clang_detection.cmake index fdedb37..169477f 100644 --- a/share/cmake/Modules/clang_detection.cmake +++ b/share/cmake/Modules/clang_detection.cmake @@ -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)