Skip to content

Commit

Permalink
Update to Clang 15
Browse files Browse the repository at this point in the history
  • Loading branch information
dc-mak committed Nov 1, 2024
1 parent 4964af4 commit 8ba3b1a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion cpp/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,16 @@
cmake_minimum_required(VERSION 3.16.3)
project(clang-tree-carver)

find_package(LLVM "12.0.0" REQUIRED CONFIG)
find_package(LLVM "15.0.7" REQUIRED CONFIG)
# Not sure what the correct/idiomatic CMake is for a situation where packages
# aren't version but CMake defaults to a wrong but earlier one instead of a
# correct later one.
# /usr/lib/cmake/clang-12/ClangConfig.cmake, version: unknown
# /usr/lib/cmake/clang-15/ClangConfig.cmake, version: unknown
# /lib/cmake/clang-12/ClangConfig.cmake, version: unknown
# /lib/cmake/clang-15/ClangConfig.cmake, version: unknown
# So I'm hard-coding it.
set(Clang_DIR "/usr/lib/cmake/clang-15")
find_package(Clang REQUIRED CONFIG)

set(CLANG_LIBS
Expand Down

0 comments on commit 8ba3b1a

Please sign in to comment.