prepare cmake unity build

Exclude files from unity build which currently cause compile erros because of redefinitions.
This commit is contained in:
tnixeu authored and JF committed 2022-12-27 12:17:46 +01:00
1 parent 298f80d504
commit 21f3bd7082
2 files changed
+29

No files matched your search

+6
View File
@@ -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()