• src/syncterm/CMakeLists.txt src/xptls/CMakeLists.txt

    From Deucе@VERT to Git commit to main/sbbs/master on Thursday, May 07, 2026 19:25:15
    https://gitlab.synchro.net/main/sbbs/-/commit/b95449436879635bbab9c495
    Modified Files:
    src/syncterm/CMakeLists.txt src/xptls/CMakeLists.txt
    Log Message:
    syncterm/xptls: fix add_subdirectory ordering for xpdev dep

    Move syncterm's add_subdirectory(../xptls ...) to after require_libs()
    so xpdev is already a target when xptls is processed. Without that,
    xptls's "if(NOT TARGET xpdev) add_subdirectory(../xpdev ...)" fired
    in xptls's scope and require_libs() then re-added xpdev in syncterm's
    scope, hitting CMP0002 (duplicate target).

    With the ordering correct, the fallback branch in xptls is only
    reached for standalone builds where there's no parent at all — plain
    set() works there, so drop the CACHE INTERNAL workaround.

    Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net