diff --git a/cpp/cmake/thirdparty/get_flatbuffers.cmake b/cpp/cmake/thirdparty/get_flatbuffers.cmake index b0ece38b8ef..6a889566300 100644 --- a/cpp/cmake/thirdparty/get_flatbuffers.cmake +++ b/cpp/cmake/thirdparty/get_flatbuffers.cmake @@ -22,6 +22,7 @@ function(find_and_configure_flatbuffers VERSION) GIT_REPOSITORY https://github.com/google/flatbuffers.git GIT_TAG v${VERSION} GIT_SHALLOW TRUE + EXCLUDE_FROM_ALL TRUE ) rapids_export_find_package_root( diff --git a/cpp/cmake/thirdparty/get_nanoarrow.cmake b/cpp/cmake/thirdparty/get_nanoarrow.cmake index d7d7fcca044..4fc742dea2e 100644 --- a/cpp/cmake/thirdparty/get_nanoarrow.cmake +++ b/cpp/cmake/thirdparty/get_nanoarrow.cmake @@ -26,6 +26,7 @@ function(find_and_configure_nanoarrow) GLOBAL_TARGETS nanoarrow CPM_ARGS OPTIONS "BUILD_SHARED_LIBS OFF" "NANOARROW_NAMESPACE cudf" + EXCLUDE_FROM_ALL TRUE ) set_target_properties(nanoarrow PROPERTIES POSITION_INDEPENDENT_CODE ON) rapids_export_find_package_root(BUILD nanoarrow "${nanoarrow_BINARY_DIR}" EXPORT_SET cudf-exports)