On Thu, Mar 5, 2009 at 7:10 PM, Bill O'Hara <billtoh...@gmail.com> wrote:
> Hi > > I'm writing a grand top-level CMakeLists.txt that delegates to a number of > CMakeLists.txt in various subdirectories: > > add_subdirectories(foo) > add_subdirectories(bar) > > Is there a straightforward to get cmake to do a make install for foo before > continuing on to do bar? And to prevent a parallel build from starting in > bar until this is completed for foo? "bar" depending on the make installed form of "foo"? Are you sure you want this? If bar depends on foo you probably want to use include_directories() and target_link_libraries() to link against the compiled form of foo, not what's make installed. To answer your question though one way would be to use a variable for this: if(USE_BAR) add_subdirectory(bar) endif() cmake .. make install cmake -DUSE_BAR=ON .. make install -- Philip Lowman
_______________________________________________ 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