Skip to content

Commit 7af3361

Browse files
committed
Merge branch 'bugfix/fix_espwolfssl_cmake_compiling' into 'master'
esp-wolfssl: fix esp-wolfssl cmake compiling error See merge request sdk/ESP8266_RTOS_SDK!1239
2 parents f7d65fe + 694cfcf commit 7af3361

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)