[CMake] FindFoobar with non-root installation

Rolf Eike Beer eike at sf-mail.de
Fri Jul 2 09:03:00 EDT 2010


Am Friday 02 July 2010 schrieb Diablo 666:
> Hi,
> 
> the last problem for today :)
> 
> Assuming I develop a project called Foobar, which consists of some
> libraries only. To make using these libraries easier, I'd like to create a
> FindFoobar.cmake file to use with FIND_PACKAGE().
> 
> The problem is that I have a lot of clients which can't install the
> libraries as root, so have to support non-root installations. How can I
> use my FindFoobar.cmake file from other projects without having it
> installed as root? It should be as easy to use as possible.

Check also in $ENV{LIBFOOBAR_DIR}/lib. User can set this to whatever he likes 
when he runs CMake for the first time in this project.

Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100702/ee07d82b/attachment.pgp>


More information about the CMake mailing list