diff --git a/v2/doc/src/advanced.xml b/v2/doc/src/advanced.xml index b2b892e3a..97f0b2a99 100644 --- a/v2/doc/src/advanced.xml +++ b/v2/doc/src/advanced.xml @@ -910,7 +910,8 @@ lib a : a.cpp : <use>b : : <library>b ; alias core : im reader writer ; - The sources are returned without any modification. + will build the sources and return the generated source targets + without modification. @@ -927,7 +928,25 @@ alias core : im reader writer ; alias boost_thread : /boost/thread//boost_thread : <link>static ; and use only the boost_thread alias in your Jamfiles. - + + + + It is also allowed to specify usage requirements for the + alias target. If you write the following: + +alias header_only_library : : : : <include>/usr/include/header_only_library ; + + then using header_only_library in sources will only add an + include path. Also note that when there are some sources, their usage + requirements are propagated, too. For example: + +lib lib : lib.cpp : : : <include>. ; +alias lib_alias ; +exe main : main.cpp lib_alias ; + + will compile main.cpp with the additional include. + +