HaochengLIU commented on code in PR #34765:
URL: https://github.com/apache/arrow/pull/34765#discussion_r1153243466


##########
cpp/cmake_modules/SetupCxxFlags.cmake:
##########
@@ -115,6 +115,9 @@ elseif(ARROW_CPU_FLAG STREQUAL "aarch64")
   if(ARROW_SIMD_LEVEL STREQUAL "DEFAULT")
     set(ARROW_SIMD_LEVEL "NEON")
   endif()
+  if(APPLE)
+    set(GTest_SOURCE "BUNDLED")
+  endif()

Review Comment:
   > - **I think that checking INTERFACE_COMPILE_FEATURES isn't so portable.
   For example, libgtest-dev on Debian/Ubuntu still uses cxx_std_11 not 
cxx_std_14.**
   
   I agree. As [Arow's minimum CXX_STANDARD requirement is 
17](https://github.com/apache/arrow/blob/main/cpp/cmake_modules/SetupCxxFlags.cmake#L128-L130),
 how about We error out whenever `INTERFACE_COMPILE_FEATURES` from GTest is 
lower than that?  It will be universal to all platforms.
   Ty.



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