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

Alexander Neundorf a.neundorf-work at gmx.net
Mon Jul 30 17:00:31 EDT 2007


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.

Alex


More information about the CMake mailing list