summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-12 00:24:23 +0100
committerDavid Robillard <d@drobilla.net>2020-11-12 00:24:23 +0100
commit7da3dbcfae5531e67a5c317676b739b38d527411 (patch)
tree203359ffdbaaf82a289ac890a390bd9268d06bd0
parent8aa502a2c10a4167616381b06bfabe21db7bcf3d (diff)
downloadsord-7da3dbcfae5531e67a5c317676b739b38d527411.tar.gz
sord-7da3dbcfae5531e67a5c317676b739b38d527411.tar.bz2
sord-7da3dbcfae5531e67a5c317676b739b38d527411.zip
Fix subproject environment when sord_validate can not be built
-rw-r--r--wscript4
1 files changed, 2 insertions, 2 deletions
diff --git a/wscript b/wscript
index dd726e9..6a24076 100644
--- a/wscript
+++ b/wscript
@@ -149,8 +149,8 @@ def configure(conf):
# Set up environment for building/using as a subproject
autowaf.set_lib_env(conf, 'sord', SORD_VERSION)
- sord_validate_node = conf.path.get_bld().make_node('sord_validate')
- if sord_validate_node is not None:
+ if conf.env.BUILD_UTILS and conf.env.HAVE_PCRE:
+ sord_validate_node = conf.path.get_bld().make_node('sord_validate')
conf.env.SORD_VALIDATE = [sord_validate_node.abspath()]
conf.write_config_header('sord_config.h', remove=False)