Skip to content

Commit 96481a3

Browse files
committed
update CMakeLists.txt
1 parent 50d1915 commit 96481a3

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
commit 50d1915417283a6f0faf2398eddb59a8de7481c4
2+
Author: Alexeev Bronislav <alexeev.dev@mail.ru>
3+
Date: Mon Aug 4 07:41:36 2025 +0700
4+
5+
update CMakeLists.txt
6+
17
commit 9fa882c7811ec4b4b2bc9304ce8d491143603160
28
Author: Alexeev Bronislav <alexeev.dev@mail.ru>
39
Date: Mon Aug 4 07:39:39 2025 +0700

CMakeLists.txt

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,20 @@ project(
1313
include(cmake/project-is-top-level.cmake)
1414
include(cmake/variables.cmake)
1515

16+
# ---- Find dependencies ----
17+
18+
find_package(Boost REQUIRED)
19+
find_package(Clang REQUIRED)
20+
find_package(LLVM REQUIRED)
21+
find_package(PkgConfig REQUIRED)
22+
find_package(Catch2 REQUIRED)
23+
find_package(absl REQUIRED)
24+
find_package(libxml2 REQUIRED)
25+
26+
# If you have specific components of LLVM or Clang you need, specify them here
27+
find_package(LLVM REQUIRED CONFIG)
28+
find_package(Clang REQUIRED CONFIG)
29+
1630
# ---- Declare library ----
1731

1832
add_library(
@@ -23,7 +37,7 @@ add_library(
2337
target_include_directories(
2438
sleaf-llvm_lib ${warning_guard}
2539
PUBLIC
26-
"\$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/source>"
40+
"$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/source>"
2741
)
2842

2943
target_compile_features(sleaf-llvm_lib PUBLIC cxx_std_20)

0 commit comments

Comments
 (0)