Hello! I use 2.8.8 and my build chais is following:

I have 3 static libs  - A.a, B.a, C.a.
I'm creating new D.so (add_library .. SHARED .. ) with limited set on
functions from static libs (linking -lA -lB -lC to resolve functions).
Then I'm creating application, wich use D.so as main library. I'm linking
it with target_link_libraries(target D.so).

But finally, my link cmdline is following: -o application -lD -lA -lB -C.
But I want to link only one shared lib - D.so!
As I understand this is results of caching libs. How I can resolve this?

Thanks!
--

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

Reply via email to