assignUser opened a new issue, #39590:
URL: https://github.com/apache/arrow/issues/39590

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   The externalProjects are run in a separate empty env, so any changes done to 
prefix path (or other CMAKE_* vars) that we don't specifically pass on don't 
reach the ep CMake.
   
   I think this is a pretty rare edge case but it surfaced in the macOS R 
submission. Ther runners have boost installed in a non-default prefix which is 
passed on to CMake via envvar (I suspect, no direct access to the env) so our 
`resolve_dependency` finds boost and uses that. But the sub-cmake of thrift 
doesn't have the envvar to hint it boosts path and fails to find it.
   
   We should forward `CMAKE_PREFIX_PATH` and `$ENV{CMAKE_PREFIX_PATH}` to the 
external projects via `EP_COMMON_CMAKE_ARGS`. The envvar is (different then for 
other vars) not used to initialize the cmake var, it is just used in 
`find_package` so we have to forward it explicitly.
   
   
   ### Component(s)
   
   C++


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