From 0e15524181562498ffcd834b93515aed2a704627 Mon Sep 17 00:00:00 2001 From: Torsten Wierschin Date: Fri, 9 Oct 2026 15:36:54 +0000 Subject: [PATCH] fix: exclude TopicReplayInterface and RecordReplayPlugin from release scope - Wrap TopicReplayInterface and RecordReplayPlugin in BUILD_RTI conditional - These modules require RTI DDS which is not in release scope - Fixes missing topiceditorbase_export.h error during release builds Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../Common/PluginInterfaces/CMakeLists.txt | 36 ++++++++++--------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/qt6-after/qt6-migrated-legatus/Lts/Common/PluginInterfaces/CMakeLists.txt b/qt6-after/qt6-migrated-legatus/Lts/Common/PluginInterfaces/CMakeLists.txt index 9313918c1..c4d041a13 100755 --- a/qt6-after/qt6-migrated-legatus/Lts/Common/PluginInterfaces/CMakeLists.txt +++ b/qt6-after/qt6-migrated-legatus/Lts/Common/PluginInterfaces/CMakeLists.txt @@ -38,21 +38,23 @@ ADD_LIBRARY(StylePluginInterface SHARED TARGET_INCLUDE_DIRECTORIES(StylePluginInterface PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/..) TARGET_LINK_LIBRARIES(StylePluginInterface PUBLIC Qt6::Core) -# record_replay_plugin -ADD_LIBRARY(RecordReplayPlugin SHARED - ${CMAKE_CURRENT_SOURCE_DIR}/record_replay_plugin.h - ${CMAKE_CURRENT_SOURCE_DIR}/record_replay_plugin.cpp -) -TARGET_INCLUDE_DIRECTORIES(RecordReplayPlugin PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/..) -TARGET_LINK_LIBRARIES(RecordReplayPlugin PUBLIC Qt6::Core) +# record_replay_plugin (requires RTI DDS) +if(BUILD_RTI) + ADD_LIBRARY(RecordReplayPlugin SHARED + ${CMAKE_CURRENT_SOURCE_DIR}/record_replay_plugin.h + ${CMAKE_CURRENT_SOURCE_DIR}/record_replay_plugin.cpp + ) + TARGET_INCLUDE_DIRECTORIES(RecordReplayPlugin PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/..) + TARGET_LINK_LIBRARIES(RecordReplayPlugin PUBLIC Qt6::Core) -# Topic Replay Interface -ADD_LIBRARY(TopicReplayInterface SHARED - ${CMAKE_CURRENT_SOURCE_DIR}/topic_replay_interface.h - ${CMAKE_CURRENT_SOURCE_DIR}/topic_replay_interface.cpp -) -TARGET_INCLUDE_DIRECTORIES(TopicReplayInterface PUBLIC - ${CMAKE_CURRENT_SOURCE_DIR}/.. - ${CMAKE_BINARY_DIR}/Lts/Common/TopicEditorBase # topiceditorbase_export.h -) -TARGET_LINK_LIBRARIES(TopicReplayInterface PUBLIC Qt6::Core TopicEditorBase) + # Topic Replay Interface (requires RTI DDS and TopicEditorBase) + ADD_LIBRARY(TopicReplayInterface SHARED + ${CMAKE_CURRENT_SOURCE_DIR}/topic_replay_interface.h + ${CMAKE_CURRENT_SOURCE_DIR}/topic_replay_interface.cpp + ) + TARGET_INCLUDE_DIRECTORIES(TopicReplayInterface PUBLIC + ${CMAKE_CURRENT_SOURCE_DIR}/.. + ${CMAKE_BINARY_DIR}/Lts/Common/TopicEditorBase # topiceditorbase_export.h + ) + TARGET_LINK_LIBRARIES(TopicReplayInterface PUBLIC Qt6::Core TopicEditorBase) +endif()