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 BUILD_TESTING and ADA_TOOLS so that CPM doesn't
bring in more dependencies such as simdjson, fmt, cxxopts.

Also add the license.

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

FetchContent_GetProperties(ada)
if(NOT ada_POPULATED)
# Disable Build Tools and CLI so that CPM isn't needed

FetchContent_Populate(ada)
set(ADA_TOOLS OFF CACHE INTERNAL "Disable ada tools")
# Store the old value of the 'BUILD_TESTING'
set(BUILD_TESTING_OLD ${BUILD_TESTING})
set(BUILD_TESTING OFF CACHE INTERNAL "Disable ada Tests")
add_subdirectory(${ada_SOURCE_DIR} ${ada_BINARY_DIR})
set(BUILD_TESTING ${BUILD_TESTING_OLD} CACHE BOOL "Build Tests" 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 f533a85

Please sign in to comment.