diff --git a/cmake/dependencies.cmake b/cmake/dependencies.cmake index 176b2ac9a317d..fd97c5c6cc9ff 100644 --- a/cmake/dependencies.cmake +++ b/cmake/dependencies.cmake @@ -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 diff --git a/licenses/third_party.md b/licenses/third_party.md index 7990211894f63..8060462fe5106 100644 --- a/licenses/third_party.md +++ b/licenses/third_party.md @@ -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 |