mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-05-12 15:03:18 +02:00
Merge bitcoin/bitcoin#35165: cmake: Remove NetBSD-specific workaround from add_boost_if_needed
e2ef54b8bacmake: Remove NetBSD-specific workaround from `add_boost_if_needed` (Hennadii Stepanov) Pull request description: The patched package [`boost-1.90.0`](https://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/meta-pkgs/boost/index.html) is available as of the [`pkgsrc-2026Q1`](https://mail-index.netbsd.org/netbsd-announce/2026/03/27/msg000392.html) release. ACKs for top commit: davidgumberg: Tested ACKe2ef54b8bafanquake: ACKe2ef54b8baTree-SHA512: d6c78d874c80daaaaddea93215dab32c254bcdca60d42613105c231c92847b7a049b87e419c764cb58ea3aa456f02ddffc9e94d23bc709f3109f621f909872b6
This commit is contained in:
@@ -31,17 +31,6 @@ function(add_boost_if_needed)
|
||||
|
||||
find_package(Boost 1.74.0 REQUIRED CONFIG)
|
||||
mark_as_advanced(Boost_INCLUDE_DIR boost_headers_DIR)
|
||||
# Workaround for a bug in NetBSD pkgsrc.
|
||||
# See https://gnats.netbsd.org/59856.
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "NetBSD")
|
||||
get_filename_component(_boost_include_dir "${boost_headers_DIR}/../../../include/" ABSOLUTE)
|
||||
if(_boost_include_dir MATCHES "^/usr/pkg/")
|
||||
set_target_properties(Boost::headers PROPERTIES
|
||||
INTERFACE_INCLUDE_DIRECTORIES ${_boost_include_dir}
|
||||
)
|
||||
endif()
|
||||
unset(_boost_include_dir)
|
||||
endif()
|
||||
set_target_properties(Boost::headers PROPERTIES IMPORTED_GLOBAL TRUE)
|
||||
target_compile_definitions(Boost::headers INTERFACE
|
||||
# We don't use multi_index serialization.
|
||||
|
||||
Reference in New Issue
Block a user