<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/62300>62300</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[cmake] warns it can't find libedit
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
LW-archlinux
</td>
</tr>
</table>
<pre>
Since commit https://github.com/llvm/llvm-project/commit/7d89e6c1c0a01c959beddab643e39d2bc4c2c97d I get the following warning when building my https://aur.archlinux.org/packages/libclc-minimal-git package .
```
CMake Warning at /usr/lib/cmake/llvm/LLVMConfig.cmake:167 (find_package):
By not providing "FindLibEdit.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "LibEdit", but
CMake did not find one.
Could not find a package configuration file provided by "LibEdit" with any
of the following names:
LibEditConfig.cmake
libedit-config.cmake
Add the installation prefix of "LibEdit" to CMAKE_PREFIX_PATH or set
"LibEdit_DIR" to a directory containing one of the above files. If
"LibEdit" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
CMakeLists.txt:46 (find_package)
```
Reverting the commit doesn't show the warning and there's no error about a missing target.
libedit is installed with pkgconf .pc files but no cmake files for it are present. As far as I can tell the warning is not relevant for the libclc-minimal-git build .
Maybe the warning is not applicable for all projects ?
@ekilmer , please describe what were the circumstances where you noticed
> CMake will report an error about a missing target.
as the description of 7d89e6c1c0a01c959beddab643e39d2bc4c2c97d states.
Lone_Wolf
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJycVVGv2jgT_TXhZXRRcCCQBx4oXPRdlauvane3-3Y1sSfEi2NHtgPl36_sGLq096G7EkoUJjlzfObMDDonj5ponS0-ZIvdBAffGrs-fH1Cy1sl9fBtUhtxXX-RmhNw03XSQ-t977Jik7F9xvZH6duhnnLTZWyv1Pl2e-qt-Yu4z9h-_C5j-6VYVVTyGc8xn_FqUdUkB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