Includes should be relative to the src directory, not main.cpp file (#390)

This commit is contained in:
Marcin Jaworski 2019-01-29 16:12:38 +01:00 committed by Otto Winter
parent bd23584073
commit 5fcda34c45

View file

@ -238,6 +238,6 @@ def includes(config):
ret = []
for include in config.get(CONF_INCLUDES, []):
path = CORE.relative_path(include)
res = os.path.relpath(path, CORE.relative_build_path('src', 'main.cpp'))
res = os.path.relpath(path, CORE.relative_build_path('src'))
ret.append(u'#include "{}"'.format(res))
return ret