[CMake] add dependency to cpack's "package" target
Tyler Roscoe
tyler at cryptio.net
Tue Nov 10 15:45:43 EST 2009
On Tue, Nov 10, 2009 at 01:54:06PM -0600, Mark Moll wrote:
> add_dependencies(package doc)
>
> where doc is a target that forces doxygen to run. However, this
> doesn’t work, because the package target isn’t defined. How do I get
> around this?
You can't add dependencies to the "special" CMake targets (package,
install, test, etc.). There's a bug about this in the bug base.
As a workaround, you can make a new custom_target that depends on both
package and doc. The bug might have additional workaround ideas.
tyler
More information about the CMake
mailing list