We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a353785 commit 694cfcfCopy full SHA for 694cfcf
components/esp-wolfssl/CMakeLists.txt
@@ -9,8 +9,13 @@ endif()
9
register_component()
10
11
if(CONFIG_ESP_WOLFSSL_INTERNAL)
12
-target_compile_options(${COMPONENT_NAME} PUBLIC -DWOLFSSL_USER_SETTINGS)
+target_compile_options(${COMPONENT_LIB} PUBLIC -DWOLFSSL_USER_SETTINGS)
13
14
-target_link_libraries(${COMPONENT_NAME} "-L ${CMAKE_CURRENT_SOURCE_DIR}/wolfssl/lib")
15
-target_link_libraries(${COMPONENT_NAME} wolfssl)
+target_link_libraries(${COMPONENT_LIB} PUBLIC "-L ${CMAKE_CURRENT_SOURCE_DIR}/wolfssl/lib")
+
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()
21
endif()
0 commit comments