diff options
author | David Robillard <d@drobilla.net> | 2020-11-12 00:24:23 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-12 00:24:23 +0100 |
commit | 7da3dbcfae5531e67a5c317676b739b38d527411 (patch) | |
tree | 203359ffdbaaf82a289ac890a390bd9268d06bd0 | |
parent | 8aa502a2c10a4167616381b06bfabe21db7bcf3d (diff) | |
download | sord-7da3dbcfae5531e67a5c317676b739b38d527411.tar.gz sord-7da3dbcfae5531e67a5c317676b739b38d527411.tar.bz2 sord-7da3dbcfae5531e67a5c317676b739b38d527411.zip |
Fix subproject environment when sord_validate can not be built
-rw-r--r-- | wscript | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |