<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/81178>81178</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[openmp] CMake fails with default configuration: Some (but not all) targets in this export set were already defined
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
carlosgalvezp
</td>
</tr>
</table>
<pre>
Hi!
I'm trying to build openmp following the instructions. Simply running:
```
cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ ..
```
This gives:
```
CMake Error at /usr/lib/llvm-19/lib/cmake/llvm/LLVMExports.cmake:37 (message):
Some (but not all) targets in this export set were already defined.
Targets Defined: omp
Targets not yet defined: ...
Call Stack (most recent call first):
/usr/lib/llvm-19/cmake/LLVMConfig.cmake:376 (include)
libomptarget/cmake/Modules/LibomptargetGetDependencies.cmake:27 (find_package)
libomptarget/CMakeLists.txt:37 (include)
```
This is happening on trunk, having preinstalled the latest snapshot. Am I missing some package to be installed?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysVE1v4zYQ_TXUZbCCRMmRddDBseM2aIwWzaLYW0BRY4kNRQrkKFn31xek7MRJP04LGDKkN3ycefNmhPeqN4gNW92y1S4RMw3WNVI4bX0v9Av-NSWt7U7Nz4rxnGU7lm2W5z3j1QjkTsr0QBbaWekO7IRmnOBotbavERkQlPHkZknKGp_CoxonfQI3G6NMz4rNNSu7yc6_-CpH8YzwZbc9bH65e9o-bX89_Hb_cPc7K3ZSC9O_Q9--_QNk_JbxW0jTf6X-OigPvXpB__8pbA8hhTvnrANBwPh-9o7xvVZteOqX8Utev73HhM_fGd8_PPxxuPs-WUc-XaBiU1TA-HpE70WPjNdv1wM82hED2M4ExhIIrRmvgYTrkTwoAxSyxsgIHgle0SEI7VB0J-jwqAx26XU18PV8eLeArNiAHafLjZf_S1S49YR0oQrRafqBcCu0hkcS8jmWYT2BQ4mGQAbkqJynD1X9p2IXrYJIW2uOqr_S6CawKyP13EWRFi6tWjtOix5XDAfbzRp94LoK-AlphxOaDo1U-N4AHhtwVKZ7moR8PnfhLMSnG2L3H5Qnn9J3euve58Q-eebKYcrDIKYJg9fBGiA3m2fGtzCIl_BpchjGQ2iNXRwWLQg9gTdi8oOlFDYj3MOovA_hPjjknHWcumW64nFW7JOuKbq6qEWCTV5lVckznq2ToakrLjLRlZkUdZdnZXZTVCsuu6zADPO8TVTDM16G6LzmBa9SXq_KYi2rYybLUsiSlRmOQuk0NDC1rk-U9zM26zyv1okWLWof1wjnBl8hgozzsFVcE5vezr1nZaajmm8spEjH_bOsDrbawTJyR6G0h1dFQ3CjmDWBjC6ZnQirJHjzxwxMMjvdDERTXAV8z_i-VzTMbSrt-D7MsYjJ2T9RBmvECoPnogJ_BwAA___QJakI">