Skip to content

Commit

Permalink
fixup! cmake: Build bitcoind executable
Browse files Browse the repository at this point in the history
Pass `-DBOOST_NO_CXX98_FUNCTION_BASE` to the header check only when
applicable.

We have to pass it if accepted; otherwise, the test header check may
fail on some systems, such as macOS arm64 + Homebrew's boost@1.76.
  • Loading branch information
hebasto committed Aug 7, 2024
1 parent 41c8aac commit 589aba9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/module/AddBoostIfNeeded.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ function(add_boost_if_needed)
target_compile_definitions(Boost::headers INTERFACE
BOOST_NO_CXX98_FUNCTION_BASE
)
else()
set(CMAKE_REQUIRED_DEFINITIONS)
endif()

if(BUILD_TESTS)
Expand Down

0 comments on commit 589aba9

Please sign in to comment.