Create a build directory. HPX requires an out-of-tree build. This means
you will be unable to run CMake in the HPX source tree.
$ cd hpx
$ mkdir my_hpx_build
$ cd my_hpx_build
Invoke CMake from your build directory, pointing the CMake driver to
the root of your HPX source tree.
$ cmake [CMake variable definitions] /path/to/source/tree
$ cmake -DBOOST_ROOT=~/packages/boost -DCMAKE_INSTALL_PREFIX=~/packages/hpx ~/downloads/hpx_0.8.0
Invoke GNU make. If you are on a machine with multiple cores, add the
-jN flag to your make invocation, where N is the number of nodes on
your machine plus one.
$ gmake -j17
To complete the build and install HPX:
$ gmake install