diff --git a/CMakeLists.txt b/CMakeLists.txt index 19826d3..bac311d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,6 +49,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()