Guys I need a little help, I have a couple of static libraries that I want to merge into one static library. I have write add_library(name STATIC) and then target_link_libraries(name ....). But new library doesn't created
— What I am missing?
— What do you mean?
— What the hell ? Just create a new lib file and move code from other libs into the new.
— I don't think that will work for me
— As I understood target_link_libraries doesn't link library immediately into .a file.
— For example if I call from some top level Cmake with add_executable(some) then I write target_link_libraries(some mylib) and Cmake for mylib was the next add_library(mylib sources...) target_link_libraries(mylib libs)