[cmake-developers] [PATCH] add install_local target

Alexander Neundorf neundorf at kde.org
Fri Aug 25 18:46:38 EDT 2006


Hi,

Thomas complains that on "make install" cmake at first completes "make all" 
and then starts to install ( http://bugs.kde.org/show_bug.cgi?id=132072 ).
So he has to wait quite long until stuff gets installed.
The directory structure is like:

somelib/
somelib/plugin1/
somelib/plugin2/
someapp_using_somelib/

One could argue that the directory layout is broken. 
Anyway, there are two ways to make install start earlier:
-don't start to install after "all" has finished, but in for every subdir 
after that subdir has been built. The problem with this is that the 
cmake_install.cmake scripts are not suited for this type of operation.

-add a target install_local which doesn't execute the cmake_install.cmake 
scripts from the subdirs. Then Thomas can do "make somelib; make 
install_local" and hopefully be happy. This is what the attached patch does.

What do you think about this ?

Bye
Alex
-- 
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org                - http://www.kde.org
      alex AT neundorf.net               - http://www.neundorf.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: install_local.patch
Type: text/x-diff
Size: 5162 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake-developers/attachments/20060826/205fd93c/install_local.bin


More information about the cmake-developers mailing list