[CMake] Re: Why can't INSTALL(TARGET ...) find an executable that CMake built?e

Christian Convey christian.convey at gmail.com
Mon Jul 30 17:53:35 EDT 2007


On 7/30/07, Alexander Neundorf <a.neundorf-work at gmx.net> wrote:
> On Monday 30 July 2007 16:54, Christian Convey wrote:
> > Actually, I just realized that "make install" is failing because I
> > don't have permissions for installing to the target directory.
> >
> > But I still need the "cmake -P cmake_install.cmake" approach work.
> >
> > Can you recommend something I can do, other than invoking "make
> > install" (which will fail), to cause the "cmake -P
> > cmake_install.cmake" command to work?  Is there some target I can
> > make?
>
> either "make install DESTDIR=<somewhere you can write>"
> or from looking at the generated makefile:
> "make preinstall"
> But this is no official interface, so the name can change in any cmake
> release.
>

Thanks.  I only need this to work until 2.6 starts showing up in
mainstream distros (assuming that CPack 2.6 will do a good job with
Debian packaging). Hopefully this will work until then.

- C


More information about the CMake mailing list