From cmake Mon Jun 02 22:30:15 2014 From: Matthew Woehlke Date: Mon, 02 Jun 2014 22:30:15 +0000 To: cmake Subject: Re: [CMake] Question regarding External Project add and VTK Message-Id: X-MARC-Message: https://marc.info/?l=cmake&m=140174823305585 On 2014-06-02 17:48, jmerkow wrote: > I want to add VTK as an external project, but I have a few questions. > > Looking online at examples of other projects using vtk as an > external project, many of them use a 'superbuild' style technique > [...] they have some option to enable SuperBuild (or a seperate > CMakeLists.txt file) then that adds all the external projects (i.e. > vtk or itk), and finally they add their own project as an external > project (obv with superbuild turned off). I am wondering why this is > done this way.. I think the answer is that you otherwise get into a chicken-and-egg situation. Basically, your own project can't configure until VTK is available; therefore, it is necessary to make configuration of your own project be done as a build step that can depend on the build of VTK, which is what the above pattern achieves. -- Matthew -- 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://www.cmake.org/mailman/listinfo/cmake