[CMake] Small, complete CPack example?

Eric Noulard eric.noulard at gmail.com
Thu Aug 5 18:22:41 EDT 2010


2010/8/6 Chris Wolf <cw10025 at gmail.com>:
>
> Unfortunately, at first, I din't see how your example is different from
> the parts of my CMakeList.txt I sent in my last post.
>
> Then I noticed that your "install(TARGETS..." command had a relative
> path for "DESTINATION", whereas mine had an absolute path.  When
> I changed to a relative path, it worked...

You should really avoid using absolute path destination for installation.

If you cannot avoid it then you should tell CPack to use DESTDIR
set(CPACK_SET_DESTDIR ON)

however this comes with some trouble too,
see:http://public.kitware.com/Bug/view.php?id=7000


-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list