title: Directing cmake to link against shared object with debug postfix (_d)
body: <p>I've got a cmake project that pretty much looks like this:</p>
  
  <pre><code>cmake_minimum_required(VERSION 3.0)
  
  SET(CMAKE_DEBUG_POSTFIX "_d")
  
  include_directories(../TransfunctionerProject)
  include_directories(../TransmogrifierProject)
  
  set(Libraries
      ContinuumTransfunctioner
      Transmogrifier
  )
  
  set(SourceFiles
      Wrapper.cpp
      Logger.cpp
  )
  
  add_library(Frobnigator SHARED ${SourceFiles})
  add_library(FrobnigatorStatic STATIC ${SourceFiles})
  set_target_properties(FrobnigatorStatic PROPERTIES OUTPUT_NAME Frobnigator)
  target_link_libraries(Frobnigator ${Libraries})
  </code></pre>
  
  <p>Where ContinuumTransfunctioner and Transmogrifier projects include the debug postfix directive <code>SET(CMAKE_DEBUG_POSTFIX "_d")</code> so that <code>libContinuumTransfunctioner_d.so</code> and <code>libTransmogrifier_d.so</code> both exist.</p>
  
  <p>The problem is that the current project appears to be linking against the <strong><em>static</em></strong> library without the _d suffix and complains:</p>
  
  <pre><code>/usr/bin/ld: cannot find -lContinuumTransfunctioner
  </code></pre>