title: CMake make library require cxx standard
body: <p>I try to make my library target to depend on c++14. How can i achieve, that the targets, that link against my library target also depend on c++14?</p>
  
  <p>I tried to use:</p>
  
  <pre><code>add_library(lib SHARED ${FILES})
  target_compile_options(lib INTERFACE CXX_STANDARD 14)
  </code></pre>
  
  <p>This works to build the library, but when i try to compile other targets using <code>lib</code> C++14 is not activated.</p>
  
  <p>I am aware, that there are other methods, but i can't get them to work. Namely there is:</p>
  
  <pre><code>set_target_properties()
  </code></pre>
  
  <p>The reason for this is, that the library headers make use of generalised lambda capture and template aliases like <code>std::remove_reference_t</code> and similar, that are in the standard library since c++14.</p>