Skip to content

Commit 70b632a

Browse files
committed
Try different approach of defining ARROW_BUNDLED_STATIC_LIBS with parent scope
1 parent 527ffa0 commit 70b632a

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

cpp/cmake_modules/ThirdpartyToolchain.cmake

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3417,11 +3417,11 @@ function(build_google_cloud_cpp_storage)
34173417
# Remove unused directories to save build directory storage.
34183418
# 141MB -> 79MB
34193419
file(REMOVE_RECURSE "${google_cloud_cpp_SOURCE_DIR}/ci")
3420-
3421-
set(ARROW_BUNDLED_STATIC_LIBS
3422-
${ARROW_BUNDLED_STATIC_LIBS} google-cloud-cpp::storage
3423-
google-cloud-cpp::rest_internal google-cloud-cpp::common
3424-
PARENT_SCOPE)
3420+
list(APPEND
3421+
ARROW_BUNDLED_STATIC_LIBS
3422+
google-cloud-cpp::storage
3423+
google-cloud-cpp::rest_internal
3424+
google-cloud-cpp::common)
34253425

34263426
if(ABSL_VENDORED)
34273427
# Figure out what absl libraries (not header-only) are required by the
@@ -3459,6 +3459,10 @@ function(build_google_cloud_cpp_storage)
34593459
absl::time_zone)
34603460
endif()
34613461

3462+
set(ARROW_BUNDLED_STATIC_LIBS
3463+
"${ARROW_BUNDLED_STATIC_LIBS}"
3464+
PARENT_SCOPE)
3465+
34623466
list(POP_BACK CMAKE_MESSAGE_INDENT)
34633467
endfunction()
34643468

0 commit comments

Comments
 (0)