Skip to content

Commit

Permalink
Remove root directory from compiler include paths
Browse files Browse the repository at this point in the history
Fixes #1147
  • Loading branch information
dbogdanov committed May 19, 2021
1 parent 52aa260 commit 2c6970f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/examples/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,8 @@ def build(ctx):
files = ['%s.cpp' % f for f in [prog_name] + (other or [])]

# If an `other` program has files in a directory we need
# to add an aditional includes
# to add an additional includes
includes = ['.', '..']
if any((len(x.split("/")) > 1 for x in other or [])):
includes.append("../..")

ctx(features='c cxx cxxprogram check_static',
source = ctx.path.ant_glob(' '.join(files)),
Expand Down

0 comments on commit 2c6970f

Please sign in to comment.