File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ cmake_minimum_required(VERSION 3.5...3.16)
7
7
8
8
project (boost_process VERSION "${BOOST_SUPERPROJECT_VERSION} " LANGUAGES CXX)
9
9
10
+ option (BOOST_PROCESS_USE_STD_FS "Use std::filesystem instead of Boost.Filesystem" OFF )
11
+
10
12
add_library (boost_process
11
13
src/detail/environment_posix.cpp
12
14
src/detail/environment_win.cpp
@@ -49,13 +51,14 @@ target_compile_definitions(boost_process
49
51
PRIVATE BOOST_PROCESS_SOURCE=1
50
52
)
51
53
52
- if (BOOST_PROCESS_USE_STD_FS)
53
- target_compile_definitions (boost_process PUBLIC BOOST_PROCESS_USE_STD_FS=1 )
54
+ if (BOOST_PROCESS_USE_STD_FS)
55
+ target_compile_definitions (boost_process PUBLIC BOOST_PROCESS_USE_STD_FS)
56
+ target_compile_features (boost_process PUBLIC cxx_std_17)
54
57
else ()
55
58
target_link_libraries (boost_process PUBLIC Boost::filesystem)
56
59
endif ()
57
60
58
- if (WIN32 )
61
+ if (WIN32 )
59
62
target_link_libraries (boost_process PUBLIC ntdll shell32 advapi32 user32 ws2_32)
60
63
endif ()
61
64
You can’t perform that action at this time.
0 commit comments