On Wed, Mar 9, 2016 at 9:27 PM, Nicholas Braden
<nicholas11bra...@gmail.com> wrote:
> I'm not sure which discussion you're referring to, so forgive me if
> this was already mentioned - but are you using a superproject to
> ensure that dependencies are built and installed before your own
> project? That is, all dependencies as well as your own project are
> built via ExternalProject_Add and you use the DEPENDS option to ensure
> build order. This is generally the easiest way to do things, in my
> experience.

Ah! That makes sense. So I have a project (say a single
CMakeLists.txt) which just contains one or more ExternalProject_Add
(maybe other things too, but not much else), and then the subprojects
can sensibly get at previous subprojects. And those can be ordered
using DEPENDS.

OK, I see how that can work. Thanks (and apologies, I'm sure I've read
that advice before but probably I didn't understand it then).
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to