Skip to content

Commit

Permalink
add fs.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
an-tao committed Dec 21, 2021
1 parent 5c1774d commit 503654c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
19 changes: 19 additions & 0 deletions ports/drogon/fs.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 85e8ee7..c78dfc5 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -192,9 +192,11 @@ if(NEED_BOOST_FS)
else()
option(HAS_STD_FILESYSTEM_PATH "use std::filesystem" ON)
# HACK: Needed to be compiled on Yocto Linux
- get_property(CAN_LINK_FS TARGET std::filesystem PROPERTY INTERFACE_LINK_LIBRARIES SET)
- if ( CAN_LINK_FS )
- target_link_libraries(${PROJECT_NAME} PUBLIC std::filesystem)
+ if(TARGET std::filesystem)
+ get_property(CAN_LINK_FS TARGET std::filesystem PROPERTY INTERFACE_LINK_LIBRARIES SET)
+ if ( CAN_LINK_FS )
+ target_link_libraries(${PROJECT_NAME} PUBLIC std::filesystem)
+ endif()
endif()
endif()

1 change: 1 addition & 0 deletions ports/drogon/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ vcpkg_from_github(
vcpkg.patch
drogon_config.patch
static-brotli.patch
fs.patch
)

vcpkg_check_features(
Expand Down
2 changes: 1 addition & 1 deletion versions/d-/drogon.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"versions": [
{
"git-tree": "d84226c8ef66d70fe86d14fc6c5148ba86089297",
"git-tree": "9bc428a4caecf1db726e584901cd37546fea989a",
"version-semver": "1.7.4",
"port-version": 0
},
Expand Down

0 comments on commit 503654c

Please sign in to comment.