kou commented on code in PR #45306:
URL: https://github.com/apache/arrow/pull/45306#discussion_r2139402620


##########
cpp/cmake_modules/ThirdpartyToolchain.cmake:
##########
@@ -1016,17 +1016,44 @@ set(FC_DECLARE_COMMON_OPTIONS)
 if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.28)
   list(APPEND FC_DECLARE_COMMON_OPTIONS EXCLUDE_FROM_ALL TRUE)
 endif()
+if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.25)
+  list(APPEND FC_DECLARE_COMMON_OPTIONS SYSTEM)
+endif()
 
 macro(prepare_fetchcontent)
-  set(BUILD_SHARED_LIBS OFF)
-  set(BUILD_STATIC_LIBS ON)
-  set(CMAKE_COMPILE_WARNING_AS_ERROR FALSE)
-  set(CMAKE_EXPORT_NO_PACKAGE_REGISTRY TRUE)
-  set(CMAKE_MACOSX_RPATH ${ARROW_INSTALL_NAME_RPATH})
+  set(BUILD_SHARED_LIBS

Review Comment:
   OK. I've added a comment for it: 
https://github.com/apache/arrow/pull/45306/commits/874363dbffb748645c241990a828d7b6fabe28a8
   
   It's related to `CMP0077`: 
https://cmake.org/cmake/help/latest/policy/CMP0077.html
   
   > 
[option()](https://cmake.org/cmake/help/latest/command/option.html#command:option)
 honors normal variables.



-- 
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]

Reply via email to