Fix: Wrap all RTI::nddscpp2 links in IF(BUILD_RTI) conditionals

- 43 CMakeLists.txt files updated to properly condition RTI dependencies
- All NGL_TARGET_LINK_LIBRARIES blocks containing RTI:: references
  are now wrapped in IF(BUILD_RTI) blocks
- This allows building with BUILD_RTI=OFF without RTI Connext installation
- Fixes CMake configure errors about non-existent /opt/RTI paths

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
torstenandCopilot committed 2026-08-19 02:41:22 +02:00
1 parent 4a143f09b3
commit 010f91928a
42 files changed
+164

No files matched your search

@@ -72,6 +72,7 @@ NGL_TARGET_INCLUDE_DIRECTORIES(svcFlmClient
${CMAKE_CURRENT_BINARY_DIR}/../
)
IF(BUILD_RTI)
NGL_TARGET_LINK_LIBRARIES(svcFlmClient
PRIVATE
RTI::nddscpp2
@@ -80,6 +81,7 @@ NGL_TARGET_LINK_LIBRARIES(svcFlmClient
svcFlmCommon
ddsftc
)
ENDIF(BUILD_RTI)
NGL_INSTALL_TARGET(svcFlmClient)
#
@@ -100,6 +102,7 @@ NGL_TARGET_INCLUDE_DIRECTORIES(svcFlmServer
${CMAKE_CURRENT_BINARY_DIR}/../
)
IF(BUILD_RTI)
NGL_TARGET_LINK_LIBRARIES(svcFlmServer
PRIVATE
RTI::nddscpp2
@@ -110,6 +113,7 @@ NGL_TARGET_LINK_LIBRARIES(svcFlmServer
ngldb
LtsUtilsCore
)
ENDIF(BUILD_RTI)
NGL_INSTALL_TARGET(svcFlmServer)
#