prepare cmake unity build

Exclude files from unity build which currently cause compile erros because of redefinitions.
This commit is contained in:
tnixeu
2022-10-27 21:46:31 +02:00
committed by JF
parent 298f80d504
commit 21f3bd7082
2 changed files with 29 additions and 0 deletions

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()