diff --git a/new/project.jam b/new/project.jam index 6f3f5cf3f..ba82da21c 100644 --- a/new/project.jam +++ b/new/project.jam @@ -222,6 +222,10 @@ local rule find-jamfile ( # Normalize the paths of each file found. # local jamfile-found = ; + if $(parent-root) + { + parent-root = [ os.path.make $(parent-root) ] ; + } for local jamfile in $(jamfile-glob) { local normalized = [ os.path.make $(jamfile) ] ; @@ -231,7 +235,7 @@ local rule find-jamfile ( # Filter out if the found file is above the target parent root. if $(parent-root) { - if ! [ MATCH "$(parent-root)\\$(SLASH)(.*)" : $(normalized) ] + if ! [ MATCH "$(parent-root)\\/(.*)" : $(normalized) ] { normalized = ; } diff --git a/v2/build/project.jam b/v2/build/project.jam index 6f3f5cf3f..ba82da21c 100644 --- a/v2/build/project.jam +++ b/v2/build/project.jam @@ -222,6 +222,10 @@ local rule find-jamfile ( # Normalize the paths of each file found. # local jamfile-found = ; + if $(parent-root) + { + parent-root = [ os.path.make $(parent-root) ] ; + } for local jamfile in $(jamfile-glob) { local normalized = [ os.path.make $(jamfile) ] ; @@ -231,7 +235,7 @@ local rule find-jamfile ( # Filter out if the found file is above the target parent root. if $(parent-root) { - if ! [ MATCH "$(parent-root)\\$(SLASH)(.*)" : $(normalized) ] + if ! [ MATCH "$(parent-root)\\/(.*)" : $(normalized) ] { normalized = ; }