On Thursday 27 October 2011, Dan Kegel wrote: > On Thu, Oct 27, 2011 at 12:21 PM, Alexander Neundorf > > <[email protected]> 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 -- 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
