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