kou commented on code in PR #48333:
URL: https://github.com/apache/arrow/pull/48333#discussion_r2608194730
##########
cpp/cmake_modules/ThirdpartyToolchain.cmake:
##########
@@ -3033,146 +3033,27 @@ function(build_absl)
set(ABSL_VENDORED
TRUE
PARENT_SCOPE)
- set(ABSL_PREFIX "${CMAKE_CURRENT_BINARY_DIR}/absl_fc-install")
- set(ABSL_PREFIX
- "${ABSL_PREFIX}"
- PARENT_SCOPE)
if(CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION
VERSION_GREATER_EQUAL 13.0)
string(APPEND CMAKE_CXX_FLAGS " -include stdint.h")
endif()
fetchcontent_declare(absl
+ ${FC_DECLARE_COMMON_OPTIONS} OVERRIDE_FIND_PACKAGE
URL ${ABSL_SOURCE_URL}
URL_HASH "SHA256=${ARROW_ABSL_BUILD_SHA256_CHECKSUM}")
prepare_fetchcontent()
- # We have to enable Abseil install to generate abslConfig.cmake
- # so google-cloud-cpp can find Abseil through ExternalProject_Add. Our
expectation
- # is that this will not be necessary once google-cloud-cpp supports
FetchContent.
- set(ABSL_ENABLE_INSTALL ON)
+ set(ABSL_ENABLE_INSTALL OFF)
fetchcontent_makeavailable(absl)
Review Comment:
```suggestion
if(CMAKE_VERSION VERSION_LESS 3.28)
set_property(DIRECTORY ${absl_SOURCE_DIR} PROPERTY EXCLUDE_FROM_ALL TRUE)
endif()
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]