Added macro for windows compilation.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2022-09-16 11:19:20 +02:00
parent aa15ad471b
commit 1b70c21588

View File

@@ -51,6 +51,12 @@ target_compile_options(pico_fido PUBLIC
-Wall
-Werror
)
string(FIND ${CMAKE_C_COMPILER} ":" COMPILER_COLON)
if (${COMPILER_COLON} GREATER_EQUAL 0)
target_compile_options(pico_fido PUBLIC
-Wno-error=use-after-free
)
endif()
pico_add_extra_outputs(pico_fido)