<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/60570>60570</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Missing LLVMConfig.cmake on Windows
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
rnichollx
</td>
</tr>
</table>
<pre>
```
find_package(LLVM REQUIRED)
```
Does not work on Windows using the Windows installer for LLVM by default.
```
CMake Error at CMakeLists.txt:4 (find_package):
Could not find a package configuration file provided by "LLVM" with any of
the following names:
LLVMConfig.cmake
llvm-config.cmake
Add the installation prefix of "LLVM" to CMAKE_PREFIX_PATH or set
"LLVM_DIR" to a directory containing one of the above files. If "LLVM"
provides a separate development package or SDK, be sure it has been
installed.
```
A file should be generated by the installer at a location such as C:\Program Files\LLVM\cmake\LLVMConfig.cmake to enable automatic detection of LLVM to work.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8VE1v4zgM_TXyhRjDUewmOfiQdRJsMS3Q7X7eClqmbW0VMZDkpv33CylONzMDDBDEkEU-ku89Gr3XgyWqRfWLqHYZTmFkVzur1cjGvGctdx-1uCvmX7ETxbbXtns5oXrFgYRcPzz89QjP-9_-vH_e74TcXIK-y7n875g8WA5wZvcKbOFvbTs-e5i8tgOEkT7faOsDGkMOenaQarQf0FGPkwn5Leh3lZpHfCXYO8cOMEA6PmgffB7eg1huSxBy_e0IG7GcsQAankyXeowxgDBHgWLb62FyGDRb6LUhODl-0x11sTMhZWxSSAlnHUZA-wHcX1HjZD0bw-c4p8Uj-c-ac0zMblKNXB3xla6pAMa8Hb-oH66uAduuS_gzY5f-To56_Q7c3zYWGJrH7df9y9Pz_nD_z8vT9o9fgR14ClewOfpld_88ZyB02pEK7D4iBwG1jTOwpYgeC2PLb5QY8TnA_W3JK-zMlAcETyd0GAg6eiPDpyPZ8EkyO_h991XIBloCPzkCHWBEDy2RncGuzujynzhte1HIj0nOlmAgS7FsEuuGLkouQTCsLsz5SY2AHpooUNU8OR4cHuEQxxNVkwarmosOl-OtapExstgaApwCHzFoBR0FUgmc-4uVA6cV-MbHWVcvu81ygxnVi7tVtZKFLNbZWG9Utd6UbUGdrKpys9q0heqxkKpaVFWJKtO1LOSykMWdXFRFsc4RS9WXql2UK1woJFEWdERt8milnN2Qae8nqu-KalVkBlsyPn0CpLR0hnQZ1at2mauT_dpp8KIsTFqkT5Sgg6H6Ufu0vj9w8f-CZ5Mz9RjCKdleHoQ8DDqMU5srPgp5iIjz48vJ8b-kgpCH1IcX8pD6_C8AAP__Kuh44Q">