From a1185399d46f607998a9f35b67577f5211c68f06 Mon Sep 17 00:00:00 2001 From: twi-devel Date: Wed, 19 Aug 2026 15:28:41 +0200 Subject: [PATCH] Fix LtsSession build with BUILD_RTI=OFF - Conditionally include lts_session_lock_handler.cpp only when BUILD_RTI=ON - Stub header provides inline implementations when RTI is disabled - Prevents redefinition errors in stub mode Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../Lts/Common/LtsSession/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/qt6-after/qt6-migrated-legatus/Lts/Common/LtsSession/CMakeLists.txt b/qt6-after/qt6-migrated-legatus/Lts/Common/LtsSession/CMakeLists.txt index 53da7fd9f..f66f4ce4e 100755 --- a/qt6-after/qt6-migrated-legatus/Lts/Common/LtsSession/CMakeLists.txt +++ b/qt6-after/qt6-migrated-legatus/Lts/Common/LtsSession/CMakeLists.txt @@ -37,9 +37,14 @@ SET(ltssession_SRCS lts_session.h lts_session.cpp lts_session_lock_handler.h - lts_session_lock_handler.cpp ) +# Only include lock_handler implementation when RTI is available +# When BUILD_RTI=OFF, stub header provides inline implementations +if(BUILD_RTI) + list(APPEND ltssession_SRCS lts_session_lock_handler.cpp) +endif() + NGL_ADD_LIBRARY2(WS LtsSession SHARED ${ltssession_SRCS}) NGL_TARGET_INCLUDE_DIRECTORIES(LtsSession PUBLIC