Fix emulation build.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -102,27 +102,28 @@ if (NOT MSVC)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ENABLE_EMULATION)
|
if(ENABLE_EMULATION)
|
||||||
if (NOT MSVC)
|
if (NOT MSVC)
|
||||||
target_compile_options(pico_hsm PUBLIC
|
|
||||||
-fdata-sections
|
|
||||||
-ffunction-sections
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
if(APPLE)
|
|
||||||
target_link_options(pico_hsm PUBLIC
|
|
||||||
-Wl,-dead_strip
|
|
||||||
)
|
|
||||||
elseif(MSVC)
|
|
||||||
target_compile_options(pico_hsm PUBLIC
|
target_compile_options(pico_hsm PUBLIC
|
||||||
-WX
|
-fdata-sections
|
||||||
)
|
-ffunction-sections
|
||||||
|
)
|
||||||
target_link_libraries(pico_hsm PUBLIC wsock32 ws2_32 Bcrypt)
|
endif()
|
||||||
else()
|
if(APPLE)
|
||||||
target_link_options(pico_hsm PUBLIC
|
target_link_options(pico_hsm PUBLIC
|
||||||
-Wl,--gc-sections
|
-Wl,-dead_strip
|
||||||
|
)
|
||||||
|
elseif(MSVC)
|
||||||
|
target_compile_options(pico_hsm PUBLIC
|
||||||
|
-WX
|
||||||
)
|
)
|
||||||
endif (APPLE)
|
|
||||||
|
target_link_libraries(pico_hsm PUBLIC wsock32 ws2_32 Bcrypt)
|
||||||
|
else()
|
||||||
|
target_link_options(pico_hsm PUBLIC
|
||||||
|
-Wl,--gc-sections
|
||||||
|
)
|
||||||
|
endif (APPLE)
|
||||||
|
target_link_libraries(pico_hsm PRIVATE pthread m)
|
||||||
else()
|
else()
|
||||||
|
|
||||||
target_link_libraries(pico_hsm PRIVATE pico_keys_sdk pico_stdlib pico_multicore hardware_flash hardware_sync hardware_adc pico_unique_id pico_aon_timer tinyusb_device tinyusb_board)
|
target_link_libraries(pico_hsm PRIVATE pico_keys_sdk pico_stdlib pico_multicore hardware_flash hardware_sync hardware_adc pico_unique_id pico_aon_timer tinyusb_device tinyusb_board)
|
||||||
|
|||||||
Reference in New Issue
Block a user