Commit 94d1f17
authored
refactor(cmake): remove legacy directory fallback from monitoring_system library (#681)
The library definition at the root carried two parallel branches:
1. Outer if(EXISTS .../kcenon/monitoring AND EXISTS .../src) gating a
'new directory structure' build path.
2. Inner if(SOURCE_COUNT GREATER 0) gating the GLOB result, with an
else() that hardcoded 11 cpp files (Fall back to legacy structure).
3. Outer else() that hardcoded the same 11 cpp files (Use legacy
directory structure).
After PR #680 consolidated src/impl into the canonical feature
directories, the legacy branches can never trigger:
- include/kcenon/monitoring and src/ both always exist.
- The GLOB always finds sources (33 files at the time of writing).
- The hardcoded fallback list is a stale subset of the real source
set; activating it would silently miss most of the library.
Replace the dual-structure scaffolding with a single GLOB-based
add_library() call. CMakeLists.txt drops 57 lines (996 -> 939) and
the build now has exactly one path, mirroring the EPIC #674 goal of
collapsing the legacy fallback before further CMake decomposition.
No behavioural change for current builds (the GLOB path was already
the live one). The hardcoded source lists in the deleted fallback
branches no longer reflect the actual src/ layout, so removing them
also eliminates a drift hazard.1 parent f68fbfb commit 94d1f17
1 file changed
Lines changed: 19 additions & 76 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
514 | 514 | | |
515 | 515 | | |
516 | 516 | | |
517 | | - | |
| 517 | + | |
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
521 | | - | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
541 | 525 | | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | | - | |
558 | | - | |
559 | | - | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | | - | |
564 | | - | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
565 | 529 | | |
566 | | - | |
567 | | - | |
568 | | - | |
569 | | - | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | | - | |
589 | | - | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
590 | 534 | | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | | - | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
599 | 542 | | |
600 | 543 | | |
601 | 544 | | |
| |||
0 commit comments