summaryrefslogtreecommitdiff
path: root/src/displayapp
diff options
context:
space:
mode:
authortnixeu <4436784+tnixeu@users.noreply.github.com>2022-10-27 21:46:31 +0200
committerJF <JF002@users.noreply.github.com>2022-12-27 12:17:46 +0100
commit21f3bd708261ece47096961039e65d5b6f113c73 (patch)
treea25bf2c6dc85d3eb73b0f5ce326a5cab898240be /src/displayapp
parent298f80d5049bb31f7718815dc21a24314a99b859 (diff)
prepare cmake unity build
Exclude files from unity build which currently cause compile erros because of redefinitions.
Diffstat (limited to 'src/displayapp')
-rw-r--r--src/displayapp/fonts/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/displayapp/fonts/CMakeLists.txt b/src/displayapp/fonts/CMakeLists.txt
index 84830cc0..45687dc1 100644
--- a/src/displayapp/fonts/CMakeLists.txt
+++ b/src/displayapp/fonts/CMakeLists.txt
@@ -32,6 +32,12 @@ foreach(FONT ${FONTS})
add_custom_target(infinitime_fonts_${FONT}
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${FONT}.c
)
+
+# skip files, which currently cause problems when turning on CMake untiy build
+ set_source_files_properties(
+ ${FONT}.c PROPERTIES SKIP_UNITY_BUILD_INCLUSION ON
+ )
+
target_sources(infinitime_fonts PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/${FONT}.c")
add_dependencies(infinitime_fonts infinitime_fonts_${FONT})
endforeach()