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:
parent
e790f6d40f
commit
a1a24c8456
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user