On 29. Mar, 2010, at 14:11 , Kiran Gopal Patil wrote: > Hi All, > > I have created a number of libs in LIBRARY_OUTPUT_DIR by compiling the code > using cmake. > Now I want to create a one static lib from all these libs. > > Please guide me how to create one static lib from multiple static libs. > > Can I use ar -x libname and then again make ar from the *.o files? > Is there any other way? > -- > Thanks & Regards, > Kiran Patil
Don't even try. Create the single static lib in the first place. There has been a long discussion about this just recently, refer to that for more info (please read to the end, there were some dependency problems in the posted solutions): http://marc.info/?l=cmake&m=126841136518109&w=2 Michael _______________________________________________ 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
