install to different directory than specified with DCMAKE_INSTALL_PREFIX

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

install to different directory than specified with DCMAKE_INSTALL_PREFIX

Simon Frei
Hi,

I use stow for the management of my self-compiled software to allow easy
installation/deinstallation and bing able to use different versions
quickly. So in the end all the digikam files will end up in /usr/, but I
want them to be installed into /usr/local/stow/digikam5/. The usual way
to achieve this is

cmake -DCMAKE_INSTALL_PREFIX=/usr .
make
make install prefix=/usr/local/stow/digikam5

Unfortunately this does not work, anything goes under /usr and I do not
see any such option in the Makefile. Is there a way to tell make install
to place the file in an alternate directory? Or is there a way to change
DCMAKE_INSTALL_PREFIX, but tell it that it should still look for its
libraries/... directly under /usr with some additional option to cmake?

Cheers,
Simon
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: install to different directory than specified with DCMAKE_INSTALL_PREFIX

Benjamin Girault-2
Hi Simon,

You can use the bootstrap.local script that should handle your case quite
nicely (I'm using it to develop on the git version of digiKam).

Otherwise, have you tried:

  cmake -DCMAKE_INSTALL_PREFIX=/usr/local/stow/digikam5
  make
  make install

This should be the correct way (see how it is done in bootstrap.local &
bootstrap.linux). Note that CMAKE_INSTALL_PREFIX is only the target directory
where digiKam will be installed, and not at all where the libraries are.

Cheers,

--
Benjamin.

Le samedi 12 mars 2016, 11:50:28 CET Simon Frei a écrit :

> I use stow for the management of my self-compiled software to allow easy
> installation/deinstallation and bing able to use different versions
> quickly. So in the end all the digikam files will end up in /usr/, but I
> want them to be installed into /usr/local/stow/digikam5/. The usual way
> to achieve this is
>
> cmake -DCMAKE_INSTALL_PREFIX=/usr .
> make
> make install prefix=/usr/local/stow/digikam5
>
> Unfortunately this does not work, anything goes under /usr and I do not
> see any such option in the Makefile. Is there a way to tell make install
> to place the file in an alternate directory? Or is there a way to change
> DCMAKE_INSTALL_PREFIX, but tell it that it should still look for its
> libraries/... directly under /usr with some additional option to cmake?
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel