Fix build emulation in apple.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
f0687c1ef3
commit
30f86afe6d
1 changed files with 7 additions and 5 deletions
|
|
@ -95,11 +95,13 @@ ${CMAKE_CURRENT_LIST_DIR}/mbedtls/library/poly1305.c
|
|||
${CMAKE_CURRENT_LIST_DIR}/mbedtls/library/ripemd160.c
|
||||
)
|
||||
## mbedTLS reports an stringop overflow for cmac.c
|
||||
set_source_files_properties(
|
||||
${CMAKE_CURRENT_LIST_DIR}/mbedtls/library/cmac.c
|
||||
PROPERTIES
|
||||
COMPILE_FLAGS "-Wno-error=stringop-overflow= -Wno-stringop-overflow"
|
||||
)
|
||||
if (NOT ENABLE_EMULATION OR NOT APPLE)
|
||||
set_source_files_properties(
|
||||
${CMAKE_CURRENT_LIST_DIR}/mbedtls/library/cmac.c
|
||||
PROPERTIES
|
||||
COMPILE_FLAGS "-Wno-error=stringop-overflow= -Wno-stringop-overflow"
|
||||
)
|
||||
endif()
|
||||
set(INCLUDES ${INCLUDES}
|
||||
${CMAKE_CURRENT_LIST_DIR}/src
|
||||
${CMAKE_CURRENT_LIST_DIR}/src/usb
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue