Skip to content

Commit db02aac

Browse files
author
Matevz Morato
committed
Correctly specify the dependency in foxglove-websocket
1 parent b3f9f9b commit db02aac

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cpp/foxglove-websocket/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ project(FoxgloveWebSocket VERSION 0.0.1 LANGUAGES CXX)
44
find_package(nlohmann_json REQUIRED)
55
find_package(websocketpp REQUIRED)
66

7+
# It uses headers that require symbols from openssl
8+
find_package(OpenSSL REQUIRED)
9+
710
add_library(foxglove_websocket STATIC src/base64.cpp src/parameter.cpp src/serialization.cpp src/server_factory.cpp)
811
add_library(foxglove-websocket::foxglove-websocket ALIAS foxglove_websocket)
912

@@ -24,6 +27,8 @@ target_link_libraries(foxglove_websocket
2427
PUBLIC
2528
nlohmann_json::nlohmann_json
2629
websocketpp::websocketpp
30+
OpenSSL::SSL
31+
OpenSSL::Crypto
2732
)
2833

2934
set_target_properties(foxglove_websocket PROPERTIES

0 commit comments

Comments
 (0)