[CMake] How to run shell command in CMakeLists.txt
Michael Wild
themiwi at gmail.com
Mon Mar 29 09:29:02 EDT 2010
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
More information about the CMake
mailing list