How can I get the list of dependencies of cmake target?

后端 未结 1 1779
渐次进展
渐次进展 2020-12-09 16:05

For instance, how can I know if my executable target E depends on my library target L?

Let\'s image E depends on L1 and L2, but I don\'t know if they depend on L.

相关标签:
1条回答
  • 2020-12-09 16:34

    You can use CMake's "dependency graphs generator". Please read this link for details

    cmake --graphviz=test.dot . ...
    
    0 讨论(0)
提交回复
热议问题