Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[usockets] Fix build issue with feature ssl #14935

Merged
merged 3 commits into from
Dec 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ports/usockets/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ set(USOCKETS_EXT_INCLUDE_DIR )
set(USOCKETS_EXT_LIBS )

if (CMAKE_USE_OPENSSL)
# It requires C++17 or later, see https://github.com/uNetworking/uSockets/blob/master/Makefile#L43
set(CMAKE_CXX_STANDARD 17)
find_package(OpenSSL REQUIRED)
file(GLOB SSL_SOURCES src/crypto/*.c)
file(GLOB SSL_SOURCES src/crypto/*.c*)
list(APPEND SOURCES ${SSL_SOURCES})
list(APPEND USOCKETS_EXT_LIBS OpenSSL::SSL OpenSSL::Crypto)
endif()
Expand Down
1 change: 1 addition & 0 deletions ports/usockets/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Source: usockets
Version: 0.6.0
Port-Version: 1
Build-Depends:libuv
Description: Miniscule cross-platform eventing, networking & crypto for async applications

Expand Down