Fix "Tried to grab file outside current (sub)project" error when subproject exists within a source tree but it is used through a symlink. Using subprojects as symlinks is very useful feature when migrating an existing codebase to meson that all sources do not need to be immediately moved to subprojects folder.pull/10451/head
parent
eec7b2c359
commit
18e2f8b2b3
6 changed files with 35 additions and 1 deletions
@ -0,0 +1,6 @@ |
||||
extern int foo(void); |
||||
|
||||
int main(void) |
||||
{ |
||||
return foo(); |
||||
} |
@ -0,0 +1,8 @@ |
||||
project('foo', 'c') |
||||
|
||||
symlinked_subproject = subproject('symlinked_subproject') |
||||
|
||||
executable('foo', |
||||
sources : 'main.c', |
||||
dependencies : symlinked_subproject.get_variable('dep') |
||||
) |
@ -0,0 +1,3 @@ |
||||
project('symlinked_subproject', 'c', version : '1.0.0') |
||||
|
||||
dep = declare_dependency(sources : 'src.c') |
@ -0,0 +1,4 @@ |
||||
int foo(void) |
||||
{ |
||||
return 0; |
||||
} |
Loading…
Reference in new issue