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

    <tr>
        <th>Summary</th>
        <td>
            ClangConfig.cmake advertises targets that do not exist
        </td>
    </tr>

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

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

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

<pre>
    On e.g. Ubuntu, when installing the non-development packages of Clang (`apt-get install clang`), we still get a `ClangConfig.cmake` file that advertises targets such as `clangBasic`. Trying to use that target fails, however, because the non-dev packages don't install these static libraries.

It seems that the `ClangConfig.cmake` file we install should probably have fewer targets in the non-dev packages. I'm not 100% certain this is a LLVM bug, this may also be a bug to report against the Ubuntu packages or something like that.

Seen in https://buildkite.com/llvm-project/libcxx-ci/builds/12935#0182a6df-3819-48bb-a2e3-d5ed58f3fe2b as part of https://reviews.llvm.org/D131963.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx9U8lupDAQ_Rq4lEDYNAQOHLIoUqSM5jDLvTAFeNrglm26038_BZ1ViSIhRO3vvSpa252bnzNQOqTwp13msETyFk4jzaBnH9AYPQ8QRoLZzklHRzL2MNEc4IBqjwN5sD3cGuSsSFZRmeEhJAOFl3JQa4z9kay31gQ-aPavOQgc2Ipv7dzrIVUT7ol90GtDPBY5pzuSC9rzpICOqzz4RY2Afi3eut-g14qNFH6784bXwuKf6y9F0KM2fgUw2hOzcOtnSwovea_03mh1do7k1RsPTvIrdgxagdGtQ6fJp1F2F2XXl_dDAE80-efB3PVbeizFS3M_2sV0cHC2xdacYcQjQU8ncq-k9fwlzhQeGObE_gAiY5ULUKwXbumayzyr_Pj49we0y7CS3rwTngGNtywBhzmySuboYB0LPuAKa5t2OYl3u3bg7UTcg1U2en_R-IMIv2i7HRhDOPgov47kPT_tok2314FSZSe2jTlOCdP9Ryqspm7V01Oi9Esqr-peyDovIplnopJYdn2SV6JOdlXbJigpT7qCuqLq855ku57DARk9X-PHyY6Omk4-XSem1rEG93ciF3WZpzE1oizFbicKKeOuybs6rzEOOhhqPu3tq0vcFt3ZTX160j7EizPNRwCDDuPSvuP9mb72fqGVcnGVlyIeG1GVqshrRXVfIVZs9mWdl-UOO1KUidhgS8Y3UXETSXk5Kymj4i7WjcykzCpZiCLnz7SulNhlZbujCvviSkS7jCb-GV4FiV2zweEr8Bw0zOJNrRi918NMtI3i_riE0XJFp-08U7whbzbY_wHPBWzr">