summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-09-16 23:53:49 +0200
committerCarl Hetherington <cth@carlh.net>2025-09-16 23:54:01 +0200
commita898fccf28fbf11819e64741fe7a5318037c3031 (patch)
tree8f9442477f75fe3fa96518b81f2a4eae4068b2c3 /wscript
parent18184fb29a910fbc0d7b98b9d4aab814fb4f2d85 (diff)
Fix build with tests but without disk.
Diffstat (limited to 'wscript')
-rw-r--r--wscript4
1 files changed, 2 insertions, 2 deletions
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 <boost/process.hpp>\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 <boost/process.hpp>\n
int main() { boost::asio::io_context ctx; new boost::process::v2::process(ctx, "foo", {}); }\n