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

Popular posts from this blog

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - SSE Emitter : Manage timeouts and complete() -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -