TRIQS/TRIQS — Issue #20: Incorrect installation of shared libraries
Author: krivenko
Created: 2012-01-13 20:08:25+00:00
State: open

I have compiled and installed TRIQS successfully (git master) following the user manual page. However there is an implicit issue with the installation. When the `SHARED_LIBS` option is enabled, python modules in the resulting installation are linked against `libLocalGreenFunction_c.so` and `libtriqs.so` residing in the build directory. The problem gets partially solved by switching on `Install_dev` option, because then `libtriqs.so` is installed into `${CMAKE_INSTALL_PREFIX}/lib`. I guess this behavior was introduced with the static linking in mind, because it indeed makes sense to install the static library only to develop TRIQS itself.
Nevertheless, both those shared libraries must be installed into `${CMAKE_INSTALL_PREFIX}/lib` and properly linked to make it possible to create binary distributions of TRIQS.