HuaHuaY commented on code in PR #50979:
URL: https://github.com/apache/arrow/pull/50979#discussion_r3863788991


##########
cpp/cmake_modules/ThirdpartyToolchain.cmake:
##########
@@ -1175,22 +1177,27 @@ function(build_boost)
   target_compile_definitions(boost_mpl INTERFACE 
"BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS")
 
   if(ARROW_BOOST_NEED_MULTIPRECISION)
-    if(ARROW_ENABLE_THREADING)
-      target_link_libraries(boost_headers INTERFACE Boost::multiprecision)
-    else()
+    set(ARROW_BOOST_MULTIPRECISION_TARGET boost_multiprecision)
+    if(NOT ARROW_ENABLE_THREADING)

Review Comment:
   `Boost::multiprecision` is an alias of `boost_multiprecision` and we can't 
use `target_compile_options` with an alias.



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