Skip to content

Commit

Permalink
[cdt] Add boost-link.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
ex-purple committed Mar 2, 2023
1 parent 11da2f0 commit 85eee7c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
13 changes: 13 additions & 0 deletions ports/cdt/boost-link.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/CDT/CMakeLists.txt b/CDT/CMakeLists.txt
index 555fb4e..86be850 100644
--- a/CDT/CMakeLists.txt
+++ b/CDT/CMakeLists.txt
@@ -155,7 +155,7 @@ target_compile_definitions(
)

if(CDT_USE_BOOST)
- target_link_libraries(${PROJECT_NAME} INTERFACE Boost::boost)
+ target_link_libraries(${PROJECT_NAME} PUBLIC Boost::boost)
endif()


2 changes: 2 additions & 0 deletions ports/cdt/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ vcpkg_from_github(
REF "${VERSION}"
SHA512 811d1fede4960808954bc17f37c8639f52800c98562e9283517c666735ddf3b2f2f8a57992669899be13c40b0fc4439d3cd1a101cb596d2335ef4fc307408c63
HEAD_REF master
PATCHES
boost-link.patch
)

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
Expand Down
2 changes: 1 addition & 1 deletion versions/c-/cdt.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"versions": [
{
"git-tree": "002b5841cd0600e2104188e9c6d2f27b74caab1a",
"git-tree": "d04985a703ae8b9201876879003d44c84f719a3a",
"version": "1.2.0",
"port-version": 0
}
Expand Down

0 comments on commit 85eee7c

Please sign in to comment.