[CMake] Building targets for install only ...

Eric Noulard eric.noulard at gmail.com
Wed Jan 13 10:17:37 EST 2010


2010/1/13 Dr. Stefan Sablatnög <stefan.sablatnoeg at svox.com>:
> Hi everybody,
>
>
>
> Does anyone know whether there is a way to build a target only
>
> if “make install” is called? I tried “add_dependencies(install <target>),
> but
>
> it complains, that the target install does not exist.
>
> Is the install target only available in the generated makefiles?

generated target (install, help, etc...) may not be used in add_dependencies,
there is a bug/feature request filed for that (look into bug tracker)

In think a solution to your current request may be found in various very same
discussion on this ML. Try to search the ML:
http://www.cmake.org/Wiki/CMake_FAQ#Where_can_I_find_searchable_CMake_Mailing_Archives.3F


-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list