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


##########
cpp/cmake_modules/ThirdpartyToolchain.cmake:
##########
@@ -2115,7 +2118,9 @@ macro(build_substrait)
   set(SUBSTRAIT_INCLUDES ${SUBSTRAIT_CPP_DIR} ${PROTOBUF_INCLUDE_DIR})
 
   add_library(substrait STATIC ${SUBSTRAIT_SOURCES})
-  set_target_properties(substrait PROPERTIES POSITION_INDEPENDENT_CODE ON)
+  set_target_properties(substrait
+                        PROPERTIES POSITION_INDEPENDENT_CODE ON
+                                   COMPILE_OPTIONS 
"${SUBSTRAIT_SUPPRESSED_FLAGS}")

Review Comment:
   Could you use `target_compile_options()` instead?
   
   We may be able to remove `COMPILE_OPTIONS` source property:
   
https://github.com/apache/arrow/blob/fe32a7dfe5e22e7737198476fe1ac0e8a5dccef2/cpp/cmake_modules/ThirdpartyToolchain.cmake#L2077-L2078



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