3 # Copyright (C) Vladimir Prus 2006.
4 # Distributed under the Boost Software License, Version 1.0. (See
5 # accompanying file LICENSE_1_0.txt or copy at
6 # http://www.boost.org/LICENSE_1_0.txt)
8 # Test the <implicit-dependency> is respected even if the target referred to is
9 # not built itself, but only referred to by <implicit-dependency>.
13 t = BoostBuild.Tester()
15 t.write("jamroot.jam", """
16 make a.h : : gen-header ;
19 exe hello : hello.cpp : <implicit-dependency>a.h ;
38 t.write("hello.cpp", """
40 int main() { return i; }
46 t.expect_addition("bin/$toolset/debug/hello.exe")
50 t.write("jamroot.jam", """
51 make dir/a.h : : gen-header ;
54 exe hello : hello.cpp : <implicit-dependency>dir/a.h ;
73 t.write("hello.cpp", """
75 int main() { return i; }
79 t.expect_addition("bin/$toolset/debug/hello.exe")