Re: [CMake] Linking static libraries into shared libs?

2006-06-19 Thread Brad King
Daniel Sands wrote: I have some static libraries and need to link them into my CMAKE project's shared libraries. Is there a platform-independent way to specify this? What I want can be expressed by the following: g++ -shared -o libmylib.so my_obj_files.o -Wl,-whole-archive -lmy_static_lib

[CMake] Linking static libraries into shared libs?

2006-06-16 Thread Daniel Sands
I have some static libraries and need to link them into my CMAKE project's shared libraries. Is there a platform-independent way to specify this? What I want can be expressed by the following: g++ -shared -o libmylib.so my_obj_files.o -Wl,-whole-archive -lmy_static_lib -Wl,-no-whole-archive