Skip to content

Commit

Permalink
fix getting caller module
Browse files Browse the repository at this point in the history
  • Loading branch information
grisumbras committed Sep 26, 2024
1 parent b996299 commit cedc8c5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/build/project.jam
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,11 @@ rule find ( name : current-location )
local jamfile = $(root-and-jamfile[2]) ;
if $(root)
{
local caller-project = [ CALLER_MODULE ] ;
local caller-module = [ $(caller-project).project-module ] ;
local caller-module = [ CALLER_MODULE ] ;
if [ class.is-a $(caller-module) project-target ]
{
caller-module = [ $(caller-module).project-module ] ;
}
if $(jamfile)
{
modules.call-in $(caller-module)
Expand Down

0 comments on commit cedc8c5

Please sign in to comment.