Skip to content
This repository was archived by the owner on Sep 12, 2025. It is now read-only.

Commit a036f74

Browse files
committed
HunterGate and Modified CmakeLists.txts
1 parent 1fdec59 commit a036f74

File tree

6 files changed

+591
-4
lines changed

6 files changed

+591
-4
lines changed

clang/tools/CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,17 @@ endif()
3636
# on top of the Clang tooling platform. We keep them in a separate repository
3737
# to keep the primary Clang repository small and focused.
3838
# It also may be included by LLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR.
39+
if(HUNTER_ENABLED)
40+
hunter_add_package(ClangToolsExtra) # CLANGTOOLSEXTRA_ROOT
41+
set(
42+
LLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR
43+
"${CLANGTOOLSEXTRA_ROOT}"
44+
CACHE
45+
PATH
46+
"Path to Clang tools extra"
47+
FORCE
48+
)
49+
endif()
3950
add_llvm_external_project(clang-tools-extra extra)
4051

4152
# libclang may require clang-tidy in clang-tools-extra.

llvm/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ if(NOT DEFINED LLVM_VERSION_SUFFIX)
3636
set(LLVM_VERSION_SUFFIX "")
3737
endif()
3838

39+
HunterGate(
40+
URL "https://github.com/DEEP-IMPACT-AG/hunter/archive/refs/tags/v0.23.295.t13.tar.gz"
41+
SHA1 "24f17851d23077e55291807553267815cc3a0d74"
42+
)
43+
3944
if (NOT PACKAGE_VERSION)
4045
set(PACKAGE_VERSION
4146
"${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}${LLVM_VERSION_SUFFIX}")
@@ -67,6 +72,8 @@ if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
6772
set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Build type (default Debug)" FORCE)
6873
endif()
6974

75+
76+
7077
# Side-by-side subprojects layout: automatically set the
7178
# LLVM_EXTERNAL_${project}_SOURCE_DIR using LLVM_ALL_PROJECTS
7279
# This allows an easy way of setting up a build directory for llvm and another

0 commit comments

Comments
 (0)