Skip to content

Commit 694cfcf

Browse files
committed
fix(esp-wolfssl): fix esp-wolfssl cmake compiling error
1 parent a353785 commit 694cfcf

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

components/esp-wolfssl/CMakeLists.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@ endif()
99
register_component()
1010

1111
if(CONFIG_ESP_WOLFSSL_INTERNAL)
12-
target_compile_options(${COMPONENT_NAME} PUBLIC -DWOLFSSL_USER_SETTINGS)
12+
target_compile_options(${COMPONENT_LIB} PUBLIC -DWOLFSSL_USER_SETTINGS)
1313

14-
target_link_libraries(${COMPONENT_NAME} "-L ${CMAKE_CURRENT_SOURCE_DIR}/wolfssl/lib")
15-
target_link_libraries(${COMPONENT_NAME} wolfssl)
14+
target_link_libraries(${COMPONENT_LIB} PUBLIC "-L ${CMAKE_CURRENT_SOURCE_DIR}/wolfssl/lib")
15+
16+
if(CONFIG_WOLFSSL_DEBUG)
17+
target_link_libraries(${COMPONENT_LIB} PUBLIC "wolfssl_debug")
18+
else()
19+
target_link_libraries(${COMPONENT_LIB} PUBLIC "wolfssl")
20+
endif()
1621
endif()

0 commit comments

Comments
 (0)