Browse Source

msdev: fix

pull/2/head
mittorn 6 years ago committed by Alibek Omarov
parent
commit
79e6ebbe23
  1. 4
      scripts/waflib/msdev.py

4
scripts/waflib/msdev.py

@ -593,12 +593,12 @@ class MsDevProject(MsDev):
uselib_incs = bld.env['INCLUDES_%s' % dep] uselib_incs = bld.env['INCLUDES_%s' % dep]
for uselib_inc in uselib_incs: for uselib_inc in uselib_incs:
root = bld.path.abspath().replace('\\', '/') root = bld.path.abspath().replace('\\', '/')
pref = os.path.commonprefix([root, userlib_inc]) pref = os.path.commonprefix([root, uselib_inc])
if pref == root: if pref == root:
node = bld.root.find_dir(include) node = bld.root.find_dir(include)
if node: if node:
includes.append(node.path_from(gen.path).replace('/', '\\')) includes.append(node.path_from(gen.path).replace('/', '\\'))
incluses.append(userlib_inc) incluses.append(uselib_inc)
return includes return includes
def get_compiler_defines(self, gen): def get_compiler_defines(self, gen):

Loading…
Cancel
Save