[cmake-developers] make install starts "too" late

Andy Cedilnik andy.cedilnik at kitware.com
Thu Aug 10 15:56:13 EDT 2006


Hi Alex,

Hmm, interesting concept the cmake_install_local. Makes sense. I would 
not ask users to type cmake -P ....
I think having make install/local targets or something similar would be 
better.

Btw, I am not sure if Thomas realizes this, but running make install and 
playing with the executables and libraries while they are being 
installed is generally bad idea. For example, there is no guaranty that 
things will happen in the right order.

How complicated would be to fix KDE to run from the build tree?

  Andy

Alexander Neundorf wrote:
> http://bugs.kde.org/show_bug.cgi?id=132072
>
> Thomas complains that make install does at first "make all" for the whole 
> project, then "make install" for the whole project.
> He would prefer if it would do this per-directory, i.e. enter a directory, 
> make all, make install there.
> If I understand correctly, the advantage there is that some stuff is already 
> installed while other things are still compiling and so he can test the 
> already installed stuff faster.
> (KDE apps usually don't work uninstalled for various reasons, desktop files, 
> ui files, ...)
>
> What do you think of this ?
>
> Another idea would be to change the cmake_install.cmake file a bit:
>
>
> cmake_install.cmake:
>
> # Install script for directory: /home/alex/src/kde4-svn/KDE/kdebase/kmenuedit
> ...
> # setup some variables
>
> INCLUDE("/home/alex/src/kde4-svn/buildKDE/kdebase/kmenuedit/cmake_install_local.cmake")
>
> # Include the install script for each subdirectory.
> INCLUDE("/home/alex/src/kde4-svn/buildKDE/kdebase/kmenuedit/pixmaps/cmake_install.cmake")
>
>
> and have all the actual install commands for the current directory be 
> generated in cmake_install_local.cmake ?
>
> Then the "advanced" user would be able to run "cmake -P 
> cmake_install_local.cmake" and install only what is in the current directory 
> without having to wait for all subdirs to finish compiling.
>
> If you think this would be ok, I can send a patch.
>   




More information about the cmake-developers mailing list