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

    <tr>
        <th>Summary</th>
        <td>
            Minimum CMake version is too low
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    The minimum supported CMake version is currently set to `3.13.4` (https://github.com/llvm/llvm-project/blob/main/llvm/CMakeLists.txt#L3). However, the `bolt` subproject uses the `TYPE` parameter for the `install` command (https://github.com/llvm/llvm-project/blob/main/bolt/tools/driver/CMakeLists.txt#L38), which does not seem to work in this version. It seems that the minimum CMake version should be bumped to `3.14.0`.

CMake 3.13: https://cmake.org/cmake/help/v3.13/command/install.html#programs (TYPE is missing)
CMake 3.14: https://cmake.org/cmake/help/v3.14/command/install.html#programs (TYPE is present)

I hit this while trying to build BOLT with LLVM 3.13.4 in a `rustc` CI workflow.

This has also been noticed in other projects: https://github.com/coelckers/prboom-plus/pull/126/files.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJytU8tu2zAQ_BrpsqggU4_YBx3yqNGgDtqDUSBHUlxZrClR4CNu-vVdSnYKo7kEKCCQSy21OzszEka-NvseYVCjGsIALkyTsR4l3D_xI8ILWqfMCMpBG6zF0etXcOjBG0jqvMhWRVZSAAlb995PLiluE7al56B8H0TWmoEOWr9ctk-TNT-x9XQU2gjaBq7Gv3fmvjvlvMv8L7pV7IqEbTL4Yk5IaBJ2D54AU09htI-tXRDnmhAcukt6__z9c0xP3PIBPVrojL0k1eg81zrmCeHAR_kfJpgBsa03RjvapVUz4PdGWtNMcZRTr9oepCHYo_HELA6R2pOxR1AjoSXizxpk8LhciBNyP09yke1aLNeboCUIBBGGibR8E6vMcgqyJH9I8ttlXT6NQtLgcM1AO1AuM_ZwiWnvUU-0vcxf0OuFPYrOlGa9HzTNSCQdiHgXeY1SRAsNyjk1HuLs173LD_cuP9p7sujIvm-9l_UReuUXmkkKjeDtKyGMjImgiMS7b7s9nMgJsNv9eILF8FEaHim1wfk2muj-cdas0-Z0xe4-Vu65A64dlUQco86qJVGohiENLZzt5P7l4MqBrUHdHkliiicrjCEj6jCfAjmZbVesprWjKVyWyqaQm2LDU6-8xubpXaMQNjIrEOg0WN182P4kZ8CIoCrzzSbtG7niyG8QV5jnm7yt1yJf1asWu7YublopU80Fatck1V3C2IgnmEtQnFQPqWpYzuJTs6JiFcvKrqpQdF0nq7yW6y4pc6R_TWcRR_RGapsZkggHR0k9_2NvSU5uO4yIczuqz4PvjW2-GvHb6HTu3MzI_wDspqDd">