I want my executable to link the shared library again (libmy_so.so), which in turn is built with the static library (libmy_static_lib.a). When i do
target_link_libraries(my_exe my_so)
I see at compilation that cmake added libmy_static_lib.a in the assembly line. This is not what I want, and I do not understand why this is necessary. Is there any way around this? LINK_PRIVATE does not seem to make any difference.
I am using CMake 2.8.9.
source share