forked from MaaAssistantArknights/MaaDeps
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
137 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index c0c1bfef94..3c879b8958 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -17,7 +17,7 @@ target_link_libraries(boost_process | ||
Boost::asio | ||
Boost::config | ||
Boost::core | ||
- Boost::filesystem | ||
+ $<TARGET_NAME_IF_EXISTS:Boost::filesystem> | ||
Boost::fusion | ||
Boost::iterator | ||
Boost::move | ||
@@ -50,6 +50,11 @@ target_compile_definitions(boost_process | ||
PRIVATE BOOST_PROCESS_SOURCE=1 | ||
) | ||
|
||
+if(NOT TARGET Boost::filesystem) | ||
+ set(BOOST_PROCESS_USE_STD_FS ON) | ||
+ target_compile_features(boost_process PUBLIC cxx_std_17) | ||
+endif() | ||
+ | ||
if (BOOST_PROCESS_USE_STD_FS) | ||
target_compile_definitions(boost_process PUBLIC BOOST_PROCESS_USE_STD_FS=1 ) | ||
else() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Automatically generated by scripts/boost/generate-ports.ps1 | ||
|
||
vcpkg_from_github( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
REPO boostorg/process | ||
REF boost-${VERSION} | ||
SHA512 a084c71effdd591b83a7fbff85bdea925da1436dc452267ceafd0f7bd875dcd9611cd28a92c06548e9130bb596703ea05932cd94063724cfecf6d861cceebe21 | ||
HEAD_REF master | ||
PATCHES | ||
opt-filesystem.patch | ||
|
||
) | ||
|
||
set(FEATURE_OPTIONS "") | ||
boost_configure_and_install( | ||
SOURCE_PATH "${SOURCE_PATH}" | ||
OPTIONS ${FEATURE_OPTIONS} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
{ | ||
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1", | ||
"name": "boost-process", | ||
"version": "1.86.0", | ||
"description": "Boost process module", | ||
"homepage": "https://www.boost.org/libs/process", | ||
"license": "BSL-1.0", | ||
"supports": "!uwp & !emscripten", | ||
"dependencies": [ | ||
{ | ||
"name": "boost-algorithm", | ||
"version>=": "1.86.0" | ||
}, | ||
{ | ||
"name": "boost-asio", | ||
"version>=": "1.86.0" | ||
}, | ||
{ | ||
"name": "boost-assert", | ||
"version>=": "1.86.0" | ||
}, | ||
{ | ||
"name": "boost-cmake", | ||
"version>=": "1.86.0" | ||
}, | ||
{ | ||
"name": "boost-config", | ||
"version>=": "1.86.0" | ||
}, | ||
{ | ||
"name": "boost-core", | ||
"version>=": "1.86.0" | ||
}, | ||
{ | ||
"name": "boost-filesystem", | ||
"platform": "!uwp", | ||
"version>=": "1.86.0" | ||
}, | ||
{ | ||
"name": "boost-fusion", | ||
"version>=": "1.86.0" | ||
}, | ||
{ | ||
"name": "boost-headers", | ||
"version>=": "1.86.0" | ||
}, | ||
{ | ||
"name": "boost-io", | ||
"version>=": "1.86.0" | ||
}, | ||
{ | ||
"name": "boost-iterator", | ||
"version>=": "1.86.0" | ||
}, | ||
{ | ||
"name": "boost-move", | ||
"version>=": "1.86.0" | ||
}, | ||
{ | ||
"name": "boost-optional", | ||
"version>=": "1.86.0" | ||
}, | ||
{ | ||
"name": "boost-system", | ||
"version>=": "1.86.0" | ||
}, | ||
{ | ||
"name": "boost-throw-exception", | ||
"version>=": "1.86.0" | ||
}, | ||
{ | ||
"name": "boost-tokenizer", | ||
"version>=": "1.86.0" | ||
}, | ||
{ | ||
"name": "boost-type-index", | ||
"version>=": "1.86.0" | ||
}, | ||
{ | ||
"name": "boost-type-traits", | ||
"version>=": "1.86.0" | ||
}, | ||
{ | ||
"name": "boost-utility", | ||
"version>=": "1.86.0" | ||
}, | ||
{ | ||
"name": "boost-winapi", | ||
"version>=": "1.86.0" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters