title: Different ways of setting CXX standard
body: <p>Whenever it comes to set C++ standard in a project I generally use this way:</p>
  <pre><code>set(CMAKE_CXX_STANDARD 17)
  set(CMAKE_CXX_STANDARD_REQUIRED On)
  </code></pre>
  <p>But recently I came across a recommendation where they suggest to use this way:</p>
  <pre><code>set_property(TARGET MyApp PROPERTY CXX_STANDARD 17)
  set(CMAKE_CXX_STANDARD_REQUIRED On)
  </code></pre>
  <p>Is there any difference between these two?</p>