2010/1/13 Dr. Stefan Sablatnög <stefan.sablatn...@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
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to