c++ - cmake: How to specify weak dependency for dynamically loaded shared library -
i have file a.cpp, part of shared library a, loads shared library b. want express in cmake every time built, b should built. not need "build-before" dependency: cmake should not try build b before a, because in cases cyclic dependencies prevent this. add_dependencies(a b) not possible. not want add b interface link libraries, since should not linked other libraries somewhere else.
bonus points being able specify dependency on a.cpp, it's not necessary search users of file.
Comments
Post a Comment