Skip to content

Commit bb0374a

Browse files
committed
[INTERNAL] Unique names for the compile checks of the annotation items
Port of the GUI part of OpenMS/OpenMS#10856: the file-local dummy objects of Annotation1DPeakItem.cpp and Annotation1DTextItem.cpp get distinct names, so the two files can share a unity-build batch and no longer need SKIP_UNITY_BUILD_INCLUSION. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_0149aXma24dXL4j67seUsJyp
1 parent b5eed96 commit bb0374a

3 files changed

Lines changed: 2 additions & 9 deletions

File tree

‎src/openms_gui/CMakeLists.txt‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,6 @@ include (${PROJECT_SOURCE_DIR}/includes.cmake)
2626
# OpenMSGUITargets, install components library_gui and cmake_gui, headers in
2727
# OpenMS_GUI_headers); it links the CLI layer of the installed OpenMS core,
2828
# which links the core layer.
29-
# Files that cannot share a unity-build translation unit (ENABLE_UNITYBUILD): each defines a
30-
# file-local dummy object of the same name.
31-
set_source_files_properties(
32-
source/VISUAL/ANNOTATION/Annotation1DPeakItem.cpp
33-
source/VISUAL/ANNOTATION/Annotation1DTextItem.cpp
34-
PROPERTIES SKIP_UNITY_BUILD_INCLUSION ON)
35-
3629
openms_add_library(TARGET_NAME OpenMS_GUI
3730
SOURCE_FILES ${OpenMSVisual_sources}
3831
HEADER_FILES ${OpenMSVisual_sources_h}

‎src/openms_gui/source/VISUAL/ANNOTATION/Annotation1DPeakItem.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace OpenMS
1515
{
1616
namespace
1717
{
18-
Annotation1DPeakItem<Peak1D> p(Peak1D(0, 0), "test", QColor());
18+
Annotation1DPeakItem<Peak1D> compile_check_peak_item(Peak1D(0, 0), "test", QColor());
1919
}
2020
}
2121

‎src/openms_gui/source/VISUAL/ANNOTATION/Annotation1DTextItem.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace OpenMS
1313
{
1414
namespace
1515
{
16-
Annotation1DTextItem p({0, 0}, "test");
16+
Annotation1DTextItem compile_check_text_item({0, 0}, "test");
1717
}
1818

1919
void Annotation1DTextItem::ensureWithinDataRange(Plot1DCanvas* const canvas, const int layer_index)

0 commit comments

Comments
 (0)