title: How-to integrate clang-tidy with CMake (<LANG>_CLANG_TIDY) and MSVC?
body: <p>How can one pass a <code>clang</code> flag, e.g. <code>-fms-compatibility-version</code> with the <a href="https://cmake.org/cmake/help/latest/prop_tgt/LANG_CLANG_TIDY.html" rel="noreferrer"><code>&lt;LANG&gt;_CLANG_TIDY</code></a> CMake property? On the CLI this is easy:</p>
  
  <pre><code>clang-tidy main.cpp -- -fms-compatibility-version=19.10
  </code></pre>
  
  <p>But with CMake this does not work as expected:</p>
  
  <pre><code>-DCMAKE_CXX_CLANG_TIDY="clang-tidy;-checks=-*,readability-*;--;-fms-compatibility-version=19.10"
  </code></pre>
  
  <p>The flag is required to make <code>clang</code> work with modern versions of MSVC.</p>
  
  <p>If this is not possible; Is there any other way to integrate CMake+MSVC+clang-tidy (besides creating a custom build target)?</p>