Commit 3159491
cmake: Fix configure for packages using find_package()
Currently, when a package (i.e. bcc [https://github.com/iovisor/bcc.git])
that depends on LLVM/Clang tries to run cmake find_package() during
do_configure, it will fail with a similar error:
| The imported target "llvm-tblgen" references the file
| ".../recipe-sysroot/usr/bin/llvm-tblgen"
|
| but this file does not exist. Possible reasons include:
| * The file was deleted, renamed, or moved to another location.
| * An install or uninstall procedure did not complete successfully.
| * The installation package was faulty and contained
| ".../recipe-sysroot/usr/lib/cmake/LLVMExports.cmake"
| but not all the files it references.
This is due to the fact that currently the cmake scripts look for target
binaries in sysroot. Work around this by not exporting the target binaries in
Exports-* cmake files.
Upstream-Status: Inappropriate [oe-specific]
Signed-off-by: Ovidiu Panait <[email protected]>1 parent 3787e7b commit 3159491
File tree
3 files changed
+2
-15
lines changed- clang/cmake/modules
- llvm/cmake/modules
3 files changed
+2
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
186 | 185 | | |
187 | 186 | | |
188 | 187 | | |
| |||
195 | 194 | | |
196 | 195 | | |
197 | 196 | | |
198 | | - | |
199 | 197 | | |
200 | 198 | | |
201 | 199 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1495 | 1495 | | |
1496 | 1496 | | |
1497 | 1497 | | |
1498 | | - | |
1499 | 1498 | | |
1500 | 1499 | | |
1501 | 1500 | | |
| |||
1511 | 1510 | | |
1512 | 1511 | | |
1513 | 1512 | | |
1514 | | - | |
1515 | | - | |
1516 | | - | |
1517 | | - | |
| 1513 | + | |
| 1514 | + | |
1518 | 1515 | | |
1519 | 1516 | | |
1520 | 1517 | | |
| |||
1569 | 1566 | | |
1570 | 1567 | | |
1571 | 1568 | | |
1572 | | - | |
1573 | 1569 | | |
1574 | 1570 | | |
1575 | 1571 | | |
| |||
1583 | 1579 | | |
1584 | 1580 | | |
1585 | 1581 | | |
1586 | | - | |
1587 | 1582 | | |
1588 | 1583 | | |
1589 | 1584 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | 243 | | |
248 | | - | |
249 | 244 | | |
250 | 245 | | |
251 | 246 | | |
| |||
256 | 251 | | |
257 | 252 | | |
258 | 253 | | |
259 | | - | |
260 | 254 | | |
261 | 255 | | |
0 commit comments