[CMake] depend on install target?

Tyler Roscoe tyler at cryptio.net
Fri May 14 15:24:30 EDT 2010


On Fri, May 14, 2010 at 01:41:22PM -0500, Kevin Burge wrote:
> I'd like to add a "setup" target that depends on "install" so I can just  
> do "make setup".
>
> Does anyone have a work around while we wait on  
> http://public.kitware.com/Bug/view.php?id=8438?

You could write a custom_target "my_install" that runs install by hand
(cmake -P cmake_install.cmake). Then you can add_dependency on your
custom target. I've considered doing this but never tried it.

tyler


More information about the CMake mailing list