Skip to content

Commit

Permalink
[boost-interprocess] Fix link libs (#38815)
Browse files Browse the repository at this point in the history
Alternative to #38809: Some link libs are only used by tests, not by the
lib.

Portfile generated with #38814, therefore omitting change to
`generate-ports.ps1`.
  • Loading branch information
dg0yt authored May 23, 2024
1 parent 8b24c4e commit ed472cd
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ports/boost-interprocess/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ vcpkg_from_github(
REF boost-${VERSION}
SHA512 7d5f9056f76077b3d4f16445c3890ef363244c1395ba86904d65e4b0cdac7c158b9d0203c3fbe05879e39a1bee7710eedcf5a5fc889b78de4ba8e17ccd032d87
HEAD_REF master
PATCHES
unused-link-libs.diff
)

set(FEATURE_OPTIONS "")
Expand Down
17 changes: 17 additions & 0 deletions ports/boost-interprocess/unused-link-libs.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2b3f13b..913fa25 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,12 +18,10 @@ target_link_libraries(boost_interprocess
Boost::config
Boost::container
Boost::core
- Boost::integer
Boost::intrusive
Boost::move
Boost::static_assert
Boost::type_traits
- Boost::unordered
Boost::winapi
)

3 changes: 2 additions & 1 deletion ports/boost-interprocess/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
"name": "boost-interprocess",
"version": "1.85.0",
"port-version": 1,
"description": "Boost interprocess module",
"homepage": "https://github.com/boostorg/interprocess",
"homepage": "https://www.boost.org/libs/interprocess",
"license": "BSL-1.0",
"dependencies": [
{
Expand Down
5 changes: 5 additions & 0 deletions versions/b-/boost-interprocess.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "fa41cbcf45f382a10d06e7c028d6f9b4d9341d4b",
"version": "1.85.0",
"port-version": 1
},
{
"git-tree": "fa62f9583db8d8c7c7799f2952ae8b33f39b8a56",
"version": "1.85.0",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@
},
"boost-interprocess": {
"baseline": "1.85.0",
"port-version": 0
"port-version": 1
},
"boost-interval": {
"baseline": "1.85.0",
Expand Down

0 comments on commit ed472cd

Please sign in to comment.