Skip to content

Commit

Permalink
Match direct searched projects.
Browse files Browse the repository at this point in the history
This adds matching of projects that are found directly with the project-search rule.
  • Loading branch information
grafikrobot committed Mar 7, 2024
1 parent d9ae12d commit 2028ffa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/build/project.jam
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,16 @@ rule search ( name )
{
if [ path.is-rooted $(name) ]
{
# Check for a regular B2 project at an exactly matched registered
# search path location.
for local dir in "$(.search-path.$(name))"
{
local jamfile = [ path.glob $(dir) : $(JAMROOT) $(JAMFILE) ] ;
if $(jamfile)
{
return $(dir) ;
}
}
# Check for a regular B2 project relative to the search path and
# project subdir.
for local dir in "$(.search-path./)"
Expand Down

0 comments on commit 2028ffa

Please sign in to comment.