Skip to content

Commit

Permalink
3rdparty: Disable tests and tools for ada
Browse files Browse the repository at this point in the history
ada uses CPM: https://github.com/cpm-cmake/CPM.cmake

Disable git to prevent CPM from downloading 3rdparty repositories.
An intentional side effect is that tests and tools are not built.

Also add the license.

Signed-off-by: Ben Pope <ben@redpanda.com>
  • Loading branch information
BenPope committed Nov 2, 2023
1 parent d55e754 commit ee4caca
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cmake/dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,18 @@ FetchContent_Declare(
SYSTEM
SOURCE_SUBDIR crates/c-api)

FetchContent_GetProperties(ada)
if(NOT ada_POPULATED)
# Disable git to prevent CPM from downloading 3rdparty repositories.
# An intentional side effect is that tests and tools are not built

FetchContent_Populate(ada)
set(GIT_EXECUTABLE_OLD ${GIT_EXECUTABLE})
set(GIT_EXECUTABLE "" CACHE INTERNAL "Invalid path to the Git executable")
add_subdirectory(${ada_SOURCE_DIR} ${ada_BINARY_DIR})
set(GIT_EXECUTABLE ${GIT_EXECUTABLE_OLD} CACHE STRING "location of git" FORCE)
endif()

FetchContent_MakeAvailable(
fmt
rapidjson
Expand Down
1 change: 1 addition & 0 deletions licenses/third_party.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ please keep this up to date with every new library use.
| software | license |
| :---------- | :------------ |
| abseil | Apache License 2 |
| ada | Apache License 2 / MIT |
| avro | Apache License 2 |
| base64 | BSD 2 |
| boost libraries | Boost Software License Version 1.0 |
Expand Down

0 comments on commit ee4caca

Please sign in to comment.