On Fri, Mar 12, 2010 at 05:29:00PM +0100, Verweij, Arjen wrote: > For a legacy FORTRAN project, I'm looking for a cmake-way to create a > static library from several subdirectories. The current solution is > using a custom POST_BUILD step with ar and ranlib, but the resulting > archive is not known to cmake and can't be used to link to the main. > > As an alternative we've tried to propagate the list of archives using > PARENT_SCOPE, but this seems like a hack as well. Is there a clean way > to go about it?
Search the archives. There's a thread about a very similar (identical?) topic going on *right now* with subject "Static Modules". tyler _______________________________________________ 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
