|
|
@ -1443,8 +1443,15 @@ class CMakeDependency(ExternalDependency): |
|
|
|
cfgs = [x for x in tgt.properties['IMPORTED_CONFIGURATIONS'] if x] |
|
|
|
cfgs = [x for x in tgt.properties['IMPORTED_CONFIGURATIONS'] if x] |
|
|
|
cfg = cfgs[0] |
|
|
|
cfg = cfgs[0] |
|
|
|
|
|
|
|
|
|
|
|
if 'RELEASE' in cfgs: |
|
|
|
is_debug = self.env.coredata.get_builtin_option('debug'); |
|
|
|
cfg = 'RELEASE' |
|
|
|
if is_debug: |
|
|
|
|
|
|
|
if 'DEBUG' in cfgs: |
|
|
|
|
|
|
|
cfg = 'DEBUG' |
|
|
|
|
|
|
|
elif 'RELEASE' in cfgs: |
|
|
|
|
|
|
|
cfg = 'RELEASE' |
|
|
|
|
|
|
|
else: |
|
|
|
|
|
|
|
if 'RELEASE' in cfgs: |
|
|
|
|
|
|
|
cfg = 'RELEASE' |
|
|
|
|
|
|
|
|
|
|
|
if 'IMPORTED_IMPLIB_{}'.format(cfg) in tgt.properties: |
|
|
|
if 'IMPORTED_IMPLIB_{}'.format(cfg) in tgt.properties: |
|
|
|
libraries += [x for x in tgt.properties['IMPORTED_IMPLIB_{}'.format(cfg)] if x] |
|
|
|
libraries += [x for x in tgt.properties['IMPORTED_IMPLIB_{}'.format(cfg)] if x] |
|
|
|