summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-12 00:15:54 +0100
committerDavid Robillard <d@drobilla.net>2020-11-12 00:15:54 +0100
commit8aa502a2c10a4167616381b06bfabe21db7bcf3d (patch)
tree7f0c6533c03b42103704a86e5e62a12afb973644 /wscript
parentda55a282f67e50c1b647274a6fe6836747b2fe2f (diff)
downloadsord-8aa502a2c10a4167616381b06bfabe21db7bcf3d.tar.gz
sord-8aa502a2c10a4167616381b06bfabe21db7bcf3d.tar.bz2
sord-8aa502a2c10a4167616381b06bfabe21db7bcf3d.zip
Fix subproject environment when sord_validate can not be built
Diffstat (limited to 'wscript')
-rw-r--r--wscript6
1 files changed, 3 insertions, 3 deletions
diff --git a/wscript b/wscript
index 259ba4e..dd726e9 100644
--- a/wscript
+++ b/wscript
@@ -149,9 +149,9 @@ def configure(conf):
# Set up environment for building/using as a subproject
autowaf.set_lib_env(conf, 'sord', SORD_VERSION)
- conf.env.SORD_VALIDATE = [
- os.path.abspath(str(conf.path.get_bld().make_node('sord_validate')))
- ]
+ sord_validate_node = conf.path.get_bld().make_node('sord_validate')
+ if sord_validate_node is not None:
+ conf.env.SORD_VALIDATE = [sord_validate_node.abspath()]
conf.write_config_header('sord_config.h', remove=False)