[Trilinos-Users] [EXTERNAL] Troubles with the install directories
Perschbacher, Brent M
bmpersc at sandia.gov
Mon Apr 9 10:09:02 MDT 2012
Andrea,
You need to use CMAKE_INSTALL_PREFIX to give the base install directory,
this value can be an absolute path. By default the library and include
directories are then <CMAKE_INSTALL_PREFIX>/lib and
<CMAKE_INSTALL_PREFIX>/include respectively. If you want to change those
from the default you can use Trilinos_INSTALL_LIB_DIR and
Trilinos_INSTALL_INCLUDE_DIR to change them, however, these values are
interpreted as relative to the CMAKE_INSTALL_PREFIX. This is a known
limitation that we've always had, but only recently discovered, and since it
makes certain installations possible we decided to embrace it. Looking at
the documentation for the Trilinos_INSTALL_*_DIR variables I see that it
does still indicate that you can use an absolute path. I will fix that as we
no longer support that case.
Brent
On 4/8/12 4:12 AM, "Andrea Arteaga" <andyspiros at gmail.com> wrote:
> Hi all and happy Easter everyone!
>
> I'm using the cmake variables Trilinos_INSTALL_INCLUDE_DIR and
> Trilinos_INSTALL_LIB_DIR to install the Trilinos headers into
> include/trilinos and the libraries into lib64/trilinos in order to
> keep the system clean. But, if I do so, the files get installed into a
> subdirectory of the build directory, I suppose because of the relative
> paths.
>
> If I instead use absolute paths, namely /usr/include/trilinos and
> /usr/lib64/trilinos, the files are installed in the correct position,
> but the Makefiles.export.* in the include dir and the cmake files in
> the library dir contain wrong value for the variables: they contain
> /usr/ (the base dir) plus the absolute path that I give (e.g.
> /usr//usr/include/trilinos).
>
> What can I do in order to solve this problem?
>
> Thanks in advance
> Andrea Arteaga
>
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> http://software.sandia.gov/mailman/listinfo/trilinos-users
More information about the Trilinos-Users
mailing list