title: How can I add linker flag for libraries with CMake?
body: <p>When linking a binary I can use <code>CMAKE_EXE_LINKER_FLAGS</code> to add a flag (let's say <code>-Wl,-as-needed</code>). However, if I link a library this extra flag will not be taken into account. I would need something like <code>CMAKE_LIB_LINKER_FLAGS</code> but I can't find it.</p>
  <p>How should I do this?</p>