title: Debug and Release Library Linking with CMAKE (VISUAL STUDIO)
body: <p>There was already a <a href="https://stackoverflow.com/q/2209929/293195">Thread</a> which did not help really. I want to be able to link for example <strong>Foo.lib</strong>  for <strong>Release</strong> Config and <strong>Foo_d.lib</strong> for <strong>Debug</strong> Config , how can I achieve this?
  If I do this:</p>
  
  <pre><code>target_link_libraries(MyEXE debug Foo_d)
  target_link_libraries(MyEXE optimized Foo)
  </code></pre>
  
  <p>then I have both libraries in my project for the debug config?
  Why is there no Release option?</p>
  
  <p>Thanks alot!</p>