Skip to content

Commit

Permalink
Feature/b2 rooted dep projects (#4211)
Browse files Browse the repository at this point in the history
* declares projects created by b2 generator rooted

fixes #4200

* updated the b2 generator test

* changed to only root declared project for jamroot modules
  • Loading branch information
grisumbras authored and lasote committed Jan 14, 2019
1 parent 0f5069c commit 33f15dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions conans/client/generators/b2.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,10 @@ def b2_toolset_version(self):
: constant-if call-in-project
: $(id-mod)
: constant-if call-in-project ;
if [ project.is-jamroot-module $(base-project-mod) ]
{
use-project /$(id) : $(id) ;
}
return $(id-mod) ;
}
Expand Down
4 changes: 4 additions & 0 deletions conans/test/unittests/client/generators/b2_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ def b2_test(self):
: constant-if call-in-project
: $(id-mod)
: constant-if call-in-project ;
if [ project.is-jamroot-module $(base-project-mod) ]
{
use-project /$(id) : $(id) ;
}
return $(id-mod) ;
}
Expand Down

0 comments on commit 33f15dd

Please sign in to comment.