From a898fccf28fbf11819e64741fe7a5318037c3031 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 16 Sep 2025 23:53:49 +0200 Subject: Fix build with tests but without disk. --- wscript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index d6abb428f..e262c8279 100644 --- a/wscript +++ b/wscript @@ -626,12 +626,11 @@ def configure(conf): lib=['boost_regex%s' % boost_lib_suffix], uselib_store='BOOST_REGEX') - if conf.options.enable_disk: + if conf.options.enable_disk or not conf.options.disable_tests: deps = ['boost_system%s' % boost_lib_suffix] if conf.env.TARGET_WINDOWS_64 or conf.env.TARGET_WINDOWS_32: deps.append('ws2_32') deps.append('boost_filesystem%s' % boost_lib_suffix) - deps.append('boost_process%s' % boost_lib_suffix) v1 = conf.check_cxx(fragment=""" #include \n int main() { new boost::process::child("foo"); }\n @@ -643,6 +642,7 @@ def configure(conf): uselib_store='BOOST_PROCESS', mandatory=False) if v1 is None: + deps.append('boost_process%s' % boost_lib_suffix) conf.check_cxx(fragment=""" #include \n int main() { boost::asio::io_context ctx; new boost::process::v2::process(ctx, "foo", {}); }\n -- cgit v1.2.3