2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-12-24 02:05:12 +01:00

Use define_name in check_cfg(define_name=, global_define=1)

This commit is contained in:
Thomas Nagy 2016-04-03 13:20:42 +02:00
parent e790f6d40f
commit a1a24c8456
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64

View File

@ -311,7 +311,7 @@ def exec_cfg(self, kw):
define_name = kw['define_name']
# by default, add HAVE_X to the config.h, else provide DEFINES_X for use=X
if kw.get('global_define', 1):
self.define(self.have_define(kw['package']), 1, False)
self.define(define_name, 1, False)
else:
self.env.append_unique('DEFINES_%s' % kw['uselib_store'], "%s=1" % define_name)