[CMake] Why "install" target depends on "all"?

Alexander Neundorf a.neundorf-work at gmx.net
Fri May 29 15:57:17 EDT 2009


On Tuesday 26 May 2009, Denis Scherbakov wrote:
> I have a huge project with many libs and executables, but not all of them
> need to be installed. I'd say that only 20% of them have INSTALL command.
> When I issue "gmake install" the rest (80%) gets built and then only those
> 20% get installed. I thought that "install" must contain only a list of
> targets specified through INSTALL and should not depend on all.

You can set the CMAKE_SKIP_INSTALL_ALL_DEPENDENCY to TRUE if you don't want to 
have this dependency: http://www.cmake.org/Wiki/CMake_Useful_Variables

Alex


More information about the CMake mailing list