vcpkg/ports/boost-process/opt-filesystem.patch
Osyotr 054637a2ae
[boost] Update to 1.86.0 (#40465)
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2024-10-18 13:59:30 -07:00

26 lines
724 B
Diff

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()