diff options
author | David Robillard <d@drobilla.net> | 2020-11-12 00:15:54 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-12 00:15:54 +0100 |
commit | 8aa502a2c10a4167616381b06bfabe21db7bcf3d (patch) | |
tree | 7f0c6533c03b42103704a86e5e62a12afb973644 /wscript | |
parent | da55a282f67e50c1b647274a6fe6836747b2fe2f (diff) | |
download | sord-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-- | wscript | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |