Fix windows build.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -127,21 +127,27 @@ target_include_directories(pico_fido PUBLIC ${INCLUDES})
|
|||||||
|
|
||||||
target_compile_options(pico_fido PUBLIC
|
target_compile_options(pico_fido PUBLIC
|
||||||
-Wall
|
-Wall
|
||||||
|
)
|
||||||
|
if (NOT MSVC)
|
||||||
|
target_compile_options(pico_fido PUBLIC
|
||||||
-Werror
|
-Werror
|
||||||
)
|
)
|
||||||
|
|
||||||
string(FIND ${CMAKE_C_COMPILER} ":" COMPILER_COLON)
|
string(FIND ${CMAKE_C_COMPILER} ":" COMPILER_COLON)
|
||||||
if (${COMPILER_COLON} GREATER_EQUAL 0)
|
if (${COMPILER_COLON} GREATER_EQUAL 0)
|
||||||
target_compile_options(pico_fido PUBLIC
|
target_compile_options(pico_fido PUBLIC
|
||||||
-Wno-error=use-after-free
|
-Wno-error=use-after-free
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
endif(NOT MSVC)
|
||||||
|
|
||||||
if(ENABLE_EMULATION)
|
if(ENABLE_EMULATION)
|
||||||
|
if(NOT MSVC)
|
||||||
target_compile_options(pico_fido PUBLIC
|
target_compile_options(pico_fido PUBLIC
|
||||||
-fdata-sections
|
-fdata-sections
|
||||||
-ffunction-sections
|
-ffunction-sections
|
||||||
)
|
)
|
||||||
|
endif(NOT MSVC)
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
target_link_options(pico_fido PUBLIC
|
target_link_options(pico_fido PUBLIC
|
||||||
-Wl,-dead_strip
|
-Wl,-dead_strip
|
||||||
|
|||||||
Reference in New Issue
Block a user