[CMake] ExternalProject dependency question

Dan Kegel dank at kegel.com
Thu Oct 27 16:30:03 EDT 2011


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?  If so, shouldn't that be mentioned in
http://www.kitware.com/products/html/BuildingExternalProjectsWithCMake2.8.html
?
- Dan


More information about the CMake mailing list