Skip to content

Commit

Permalink
Merge pull request #391 from qiuguohua/openharmony
Browse files Browse the repository at this point in the history
Solve unchecked websocket link failure issue.
  • Loading branch information
PatriceJiang authored Jul 21, 2023
2 parents 547332b + 38354f3 commit f290ea0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions openharmony/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ set_target_properties(curl PROPERTIES
IMPORTED_LOCATION ${ohos_lib_dir}/libcurl.a
)

# curl needs to link the following libraries.
list(APPEND CC_EXTERNAL_LIBS
mbedtls
mbedcrypto
mbedx509
)

set(se_libs_name)

if(USE_SE_V8)
Expand Down Expand Up @@ -122,9 +129,6 @@ endif()
if(USE_SOCKET)
list(APPEND CC_EXTERNAL_LIBS
websockets
mbedtls
mbedcrypto
mbedx509
)
endif()

Expand Down

0 comments on commit f290ea0

Please sign in to comment.