summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTim Blechmann <[email protected]>2025-07-02 09:34:36 +0800
committerTim Blechmann <[email protected]>2025-07-06 20:08:09 +0800
commitde0ecad5010d5bf1c75b6e1848617a2b26c1c77e (patch)
treeb436d04b94f10ce06949d696a3b42944378f7fd0 /src
parent186f1a99ed9e5589f1228095f670c676ab217dce (diff)
snippets: fix unity buildsHEADdev
The snippets define MyObject in multiple cpp files. That's fine for snippets (at the risk of odr violations), but it breaks unity builds. Disabling them entirely for snippets. Pick-to: 6.8 6.9 6.10 Change-Id: I8c32404c6497956bec17231cd782cca380afb186 Reviewed-by: Lorn Potter <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/sensors/doc/snippets/sensors/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sensors/doc/snippets/sensors/CMakeLists.txt b/src/sensors/doc/snippets/sensors/CMakeLists.txt
index 42e24f82..5345a200 100644
--- a/src/sensors/doc/snippets/sensors/CMakeLists.txt
+++ b/src/sensors/doc/snippets/sensors/CMakeLists.txt
@@ -12,6 +12,11 @@ qt_add_executable(sensorsdocsnippet
myreading.cpp
)
+# MyObject is defined in multiple files
+set_target_properties(sensorsdocsnippet PROPERTIES
+ UNITY_BUILD FALSE
+)
+
target_link_libraries(sensorsdocsnippet PUBLIC
Qt::Sensors
)