Skip to content

Commit 67ec696

Browse files
committed
Set install off for crc32c and abseil and add FC_DECLARE_COMMON_OPTIONS for google-cloud
1 parent 6febeaa commit 67ec696

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cpp/cmake_modules/ThirdpartyToolchain.cmake

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3045,8 +3045,7 @@ function(build_absl)
30453045

30463046
prepare_fetchcontent()
30473047

3048-
# Enable Abseil install for CMake config generation
3049-
set(ABSL_ENABLE_INSTALL ON)
3048+
set(ABSL_ENABLE_INSTALL OFF)
30503049
fetchcontent_makeavailable(absl)
30513050

30523051
if(APPLE)
@@ -3295,6 +3294,7 @@ function(build_crc32c_once)
32953294
set(CRC32C_BUILD_TESTS OFF)
32963295
set(CRC32C_BUILD_BENCHMARKS OFF)
32973296
set(CRC32C_USE_GLOG OFF)
3297+
set(CRC32C_INSTALL OFF)
32983298
fetchcontent_makeavailable(crc32c)
32993299

33003300
# Create alias target for consistency (crc32c exports as Crc32c::crc32c when installed)
@@ -3397,6 +3397,7 @@ function(build_google_cloud_cpp_storage)
33973397
find_curl()
33983398

33993399
fetchcontent_declare(google_cloud_cpp
3400+
${FC_DECLARE_COMMON_OPTIONS}
34003401
URL ${google_cloud_cpp_storage_SOURCE_URL}
34013402
URL_HASH "SHA256=${ARROW_GOOGLE_CLOUD_CPP_BUILD_SHA256_CHECKSUM}")
34023403

0 commit comments

Comments
 (0)