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

    <tr>
        <th>Summary</th>
        <td>
            [CMake] LLVM distributions don't set the clang version 
        </td>
    </tr>

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

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

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

<pre>
    Minimal `CMakeLists.txt` for reproduction: 
```
cat ../CMakeLists.txt
cmake_minimum_required(VERSION 3.19)
project(TEST LANGUAGES CXX C)

find_package(LLVM REQUIRED CONFIG)

message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")
message(STATUS "Using LLVMConfig.cmake in ${LLVM_DIR}")

find_package(Clang REQUIRED CONFIG)
message(STATUS "Found Clang ${Clang_VERSION}")
message(STATUS "Using ClangConfig.cmake in ${Clang_DIR}")
```

I tried this both on Ubuntu 20.04 and Archlinux:

```
cmake ..
...
-- Found LLVM 15.0.7
-- Using LLVMConfig.cmake in /usr/lib/cmake/llvm
-- Found Clang
-- Using ClangConfig.cmake in /usr/lib/cmake/clang
...
```
The Clang version is missing
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUVF1vozoQ_TXmZRTLOBDggQeahCi6aXtvPqq-RQYc8C3YWdtU3X-_wrTZNkpXWgkZG885PocZDzNG1JLzFIV3KFx4rLeN0qltuG24qpT2ClX9TO-FFB1rAc3I_J698I0w1mD7ZtGMwElp0PysVdWXViiJphkgskAkQzPy_rhlySxgjGh-xTFuduyFH7vhoL47av6jF5pXiMZPy-1u_fgAU-wniCZj9Fmr_3lpEY33y90eNtnD6pCtljuYPz_D_BI2jichq-OZlS-s5ojGm83TPWyX_x3W2-UC5o8P-Xp1hei4MWPwbp_tDztAlOaqlxU4MKIBiu6G6fHfbP5Ptloe31WiaIEovbDd4jkYIWvHM1fyJGrsnIOQn2kX6-0V1U0r85bJ-lsv37sYceN5bv7X-h3qtoGR8IaDr9UwjmuwWvAKbCMMFMo2oCQcil7aHijBJAAmK8h02bRC9m9omn1GXxeYE4LxuMIfk8kEPiXPDzHB0WXnT-nIe6MRzVtRIJq778Oqfe2ueJ3jK8ZvftBNyvI3_iL6ytq-4e9Ze-XaCCVBGOiEGc7yqnRaJdOEeTz1Z1Hg0zgIEq9J_WkUF-GJlAmnJ5-FUVhGRRyXYUziMEyIJ1JK6JT4fuL7AQkSzCgLKKNVxVnikyBBAeEdEy0eXGOla08Y0_N0Rvwg8FpW8NZ89A6dDkGToq8NCkjrrvcFZoVtXZdxdx-FizEZlTBWi6If-oaBSklEIwuGW7ANh_KLYa_XbdpYezZDFdAc0bwWtukLXKruIzHja3LpD7nTaxDNneRfAQAA__-0TXV2">