[CMake] ExternalProject dependency question

Alexander Neundorf a.neundorf-work at gmx.net
Thu Oct 27 16:35:17 EDT 2011


On Thursday 27 October 2011, Dan Kegel wrote:
> On Thu, Oct 27, 2011 at 12:21 PM, Alexander Neundorf
> 
> <a.neundorf-work at gmx.net> wrote:
> > CMake doesn't know what files the external project generates, so I don't
> > see how this could be done automatically.
> > Maybe this could be done via some new additional parameters for
> > externalproject_add() or a macro which wraps those three calls into one.
> 
> For now, I am resigned to following the current doc, which works fine aside
> from requiring an add_dependencies each and every time you refer
> to an external project.
> 
> But I'm confused.
> http://www.cmake.org/Bug/view.php?id=10395 is marked as fixed in 2.8.4.
> Does that mean I can do something like
> set_property(TARGET log4cplus PROPERTY DEPENDS EP_log4cplus)
> and have it work?  

add_dependencies(), yes.

> If so, shouldn't that be mentioned in
> http://www.kitware.com/products/html/BuildingExternalProjectsWithCMake2.8.h
> tml ?

That page is from end of 2009, while cmake 2.8.4 is much newer.

Alex



More information about the CMake mailing list