<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/101154>101154</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Tests for libclc failing with CMake errors
</td>
</tr>
<tr>
<th>Labels</th>
<td>
cmake
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
tru
</td>
</tr>
</table>
<pre>
Many of the CI runs for libclc fails with the following error:
```
CMake Error at /mnt/build/lib/cmake/llvm/AddLLVM.cmake:1029 (add_executable):
add_executable cannot create target "prepare_builtins" because an imported
target with the same name already exists.
Call Stack (most recent call first):
CMakeLists.txt:170 (add_llvm_executable)
CMake Error at /mnt/build/lib/cmake/llvm/LLVM-Config.cmake:110 (target_link_libraries):
IMPORTED library can only be used with the INTERFACE keyword of
target_link_libraries
Call Stack (most recent call first):
/mnt/build/lib/cmake/llvm/LLVM-Config.cmake:98 (explicit_llvm_config)
/mnt/build/lib/cmake/llvm/AddLLVM.cmake:1089 (llvm_config)
CMakeLists.txt:170 (add_llvm_executable)
```
I haven't had time to bisect or dig deeper, but maybe anyone know what this is related to. It would be nice to have the CI working before we release 19. final.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJycVE1v6zYQ_DXUZfEEivKXDjqkTgQYSNriNeg14MfKYk2RBrmK439fUHaSlzYnAwIBitydndnhypTs3iO2bPkbW94XcqIhxJbiVKhgzu2T9GcIPdCAsN1BnHyCPkRwVmmnoZfWJThZGuYbfXAunKzfA8YYIqvvGL9n_H1d8es3b7dP8oDwkC-CJGCiGz0x0anJOsNE56xiotOjPGDeudeRie7OmMfHv5_Ky-_6ruKiASY20pgXfEM9kVQOmWg-sOHrEWjpfSDQESUhkIx7zODiGPEoI75keLI-MSFAoZZTQpAe7HgMkdBck74HflBPckTweZEuojRnwDebKJVXstI5-IukPuRqx5AIImr0BDqf9DYm-lI1zPI8zinojTLVNX9nmsX4D91fdb5d3qztj23wvd1_SlzNuBfCL876w4uzKspoMX0peff05x8_nx_u4XJ8zlJD8O4MCmFKaD7V2v3-_PCzu9s-wAHPpxANhP6a5Xuc20S8nXSzyRD4dnRWW7oIrucrH2Lf7NjN7NhvU97U9K_P6rLuYJCv6JlYEwzSANkRgQIom1AThAjG7sEgHjEysQU1EYzyrLLXz8EjHHw4wWmQBDTYBDZBRCcJDVAoYUdwCpMzubPe6jl1BnyfE6cQD3kMKOxDRDhhjkaZEKqmhN566cpfyy1MW5umbmSBbbUWoq75csWLoTWyNpUxYlOvOVaVVI1arXCh66ZRuFquC9sKLhZ8XXPe8EbwUm2aqlk2WpimN_2aswXHUVpXZv3KEPeFTWnCtuJVtVwUTip0aR5_QlxbJ_IkjG0O-KGmfWIL7uaefKQgSw7bZ0z0v3GYac8-vzzAeRCmYoquHYiOKZtTdEx0e0vDpEodxk-vzIjHGP5BnX01F5qY6K61vrbi3wAAAP__XYzR6g">