TRIQS/TRIQS — Issue #19: Make BOOST_MODULE_DIR accessible by a user
Author: krivenko
Created: 2012-01-13 18:09:38+00:00
State: open

I'm trying to write an installation script for my Linux distribution (Gentoo). It is supposed to download (git pull), compile and install TRIQS in an automated way.
There is a check in the root CMakeLists.txt file of TRIQS which determines the path to the boost.python module directory:
```cmake
EXEC_PYTHON_SCRIPT ("import boost; print boost.__path__[0]" BOOST_MODULE_DIR)
```
Unfortunately this statement fails on Gentoo, since it uses a different naming convention for the module: `/usr/lib64/python2.7/site-packages/boost_1_46` instead of `/usr/lib64/python2.7/site-packages/boost`. Although a simple symlink could solve the problem, this trick would not be consistent with how the package manager of the distribution works. I would like to suggest a short patch which allows a user to explicitly override BOOST_MODULE_DIR from the cmake command line.

https://gist.github.com/1607825