title: CMake: Splitting (independent) libraries into different target_link_libraries calls?
body: <p>Say I have a target <code>A</code> that depends on the libraries <code>B</code> and <code>C</code>. But <code>B</code> and <code>C</code> have no mutual dependence. The linking with CMake could look like</p>
  
  <pre><code>target_link_libraries( A B C )
  </code></pre>
  
  <p>but </p>
  
  <pre><code>target_link_libraries( A B )
  target_link_libraries( A C )
  </code></pre>
  
  <p>also seems to work (and might be more easy to maintain). Are there disadvantages of splitting the target_link_libraries command into multiple commands? Or should one always put it into a single command in case one eventually does encounter a mutual dependence of the libraries?</p>