Skip to content

Commit

Permalink
apacheGH-43167: [C++] Add workaround for missing Boost dependency of …
Browse files Browse the repository at this point in the history
…Thrift
  • Loading branch information
kou committed Jul 19, 2024
1 parent 0bae073 commit c025899
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cpp/cmake_modules/FindThriftAlt.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ if(ThriftAlt_FOUND)
# thrift/windows/config.h for Visual C++.
set_target_properties(thrift::thrift PROPERTIES INTERFACE_LINK_LIBRARIES "ws2_32")
endif()
# Workaround: thrift.pc doesn't have Boost dependency.
if(TARGET Boost::headers)
target_link_libraries(thrift::thrift INTERFACE Boost::headers)
endif()

if(Thrift_COMPILER_FOUND)
add_executable(thrift::compiler IMPORTED)
Expand Down

0 comments on commit c025899

Please sign in to comment.