Commit 71bd238
committed
fix(run): handle header-only deps correctly in auto-deps CMake generation
- stop linking all inferred dependency aliases blindly
- detect compiled deps via presence of CMakeLists.txt
- link only valid CMake targets using if(TARGET ...)
- avoid linking header-only libraries (no CMake target)
- fix runtime error: target_link_libraries(... gk::pdf) target not found
this restores support for header-only packages while keeping compiled deps working correctly1 parent 58c52f1 commit 71bd238
1 file changed
+21
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
511 | 511 | | |
512 | 512 | | |
513 | 513 | | |
514 | | - | |
515 | | - | |
516 | 514 | | |
517 | 515 | | |
518 | 516 | | |
| |||
547 | 545 | | |
548 | 546 | | |
549 | 547 | | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
550 | 561 | | |
551 | 562 | | |
552 | 563 | | |
| |||
598 | 609 | | |
599 | 610 | | |
600 | 611 | | |
601 | | - | |
| 612 | + | |
602 | 613 | | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
607 | 621 | | |
608 | 622 | | |
609 | 623 | | |
| |||
0 commit comments