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>
This commit is contained in:
torstenandCopilot committed 2026-08-19 15:28:41 +02:00
1 parent 0fcfac2f26
commit a1185399d4
1 file changed
+6 -1
@@ -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