Boost C++ Libraries


How to get the project root (a.k.a. Jamroot) location?

You might want to use your project's root location in your Jamfiles. To access it just declare a path constant in your Jamroot.jam file using:

path-constant TOP : . ;

After that, the TOP variable can be used in every Jamfile.