<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/70458>70458</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [Flang][Windows] Backport fixes for CMake + Flang on Windows
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            flang
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          omjavaid
      </td>
    </tr>
</table>

<pre>
    CMake support for flang MSVC was broken and has been merged recently [1].
CMake 3.28 will have all the latest fixes required for Flang + MSVC combination.

Compiling Fortran OpenBLAS project with llvm-17 and latest CMake still caused issues which were fixed by https://github.com/llvm/llvm-project/pull/66516 which depends on https://github.com/llvm/llvm-project/pull/66270

This issue aims to backport both these PRs to 17.x to have Flang successfully build projects like OpenBLAS which used along MSVC.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykk0FvnDAQhX-NuYyCsMHL7oFDNitOjVo1VXu28QDOGpvaJpv99xWGKL1WPY0Q4r153zxECHqwiA3hZ8IvmVji6HzjplfxJrTKpFP35ulZXBHCMs_OR-idh94IO8Dzy88nuIkA0rsrWhBWwbg-IlqY0A-owGOHNpo7EH6mhF9yUlxI8bhJljk7wk0bA6N4QxDGQBwRjIgYIvT6HQN4_L1ojyr5tsmXsPPm3blJaiuidnbX3dXdNGuj7QCt89ELC19ntOcvjy8we_eKXYSbjiMY8zY90DotvpvuWeO6VCeWgAp0CAsGuI26G-GGHtNmCuQdxhjnQMpHwlrC2kHHcZF55ybC2lV7Hw-7KWHtvBhDWHs4cHrYFRXOaFUAZ_9DjtXF3wB-jDpse4PQU4DoQIrumu4nXRxXzAHh2_f0itb5-zrTETbEYek6DKFfjLmDXLRRH-QCGH3FT6BbiARKGLe3Is9UU6pTeRIZNvRwOla05iXNxqZXVDCqClUcGUdVVYriicsDsqKvTlJlumEFK2nBalqVR05zqeqq7Hp1EAXDA0dSFTgJbfKVRe78kKWgTV1U_JgZIdGEVGfGUk0JY2uzfZPYyWUIpCqMDjF8KkQdTfoHUnrCL4Sff2mr3C0QfoHzB7utkmsTt56sTdyAOQv7B9niTfPPl9xKRlibYvwJAAD__-5OMBM">