cmake: Remove NetBSD-specific workaround from add_boost_if_needed

The patched package is available as of the `pkgsrc-2026Q1` release.
This commit is contained in:
Hennadii Stepanov
2026-04-27 10:50:59 +01:00
parent a7bea426b4
commit e2ef54b8ba

View File

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