From cedc8c50e46c42fd92beec2b0f4de150f587397b Mon Sep 17 00:00:00 2001 From: Dmitry Arkhipov Date: Tue, 3 Sep 2024 21:55:54 +0300 Subject: [PATCH] fix getting caller module --- src/build/project.jam | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/build/project.jam b/src/build/project.jam index 90a2964095..889c89fec2 100644 --- a/src/build/project.jam +++ b/src/build/project.jam @@ -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)