Thanks to visit codestin.com Credit goes to github.com
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.
2 parents f7d65fe + 694cfcf commit 7af3361Copy full SHA for 7af3361
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