mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-22 01:27:11 +08:00
fix(esp-wolfssl): fix esp-wolfssl cmake compiling error
This commit is contained in:
@ -9,8 +9,13 @@ endif()
|
|||||||
register_component()
|
register_component()
|
||||||
|
|
||||||
if(CONFIG_ESP_WOLFSSL_INTERNAL)
|
if(CONFIG_ESP_WOLFSSL_INTERNAL)
|
||||||
target_compile_options(${COMPONENT_NAME} PUBLIC -DWOLFSSL_USER_SETTINGS)
|
target_compile_options(${COMPONENT_LIB} PUBLIC -DWOLFSSL_USER_SETTINGS)
|
||||||
|
|
||||||
target_link_libraries(${COMPONENT_NAME} "-L ${CMAKE_CURRENT_SOURCE_DIR}/wolfssl/lib")
|
target_link_libraries(${COMPONENT_LIB} PUBLIC "-L ${CMAKE_CURRENT_SOURCE_DIR}/wolfssl/lib")
|
||||||
target_link_libraries(${COMPONENT_NAME} wolfssl)
|
|
||||||
|
if(CONFIG_WOLFSSL_DEBUG)
|
||||||
|
target_link_libraries(${COMPONENT_LIB} PUBLIC "wolfssl_debug")
|
||||||
|
else()
|
||||||
|
target_link_libraries(${COMPONENT_LIB} PUBLIC "wolfssl")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
Reference in New Issue
Block a user