From d7f3f0b3b0930272b741df185e99d9011efff029 Mon Sep 17 00:00:00 2001 From: Kai-Uwe Hermann Date: Fri, 22 Dec 2023 08:58:32 +0100 Subject: [PATCH] Use identical settings for libwebsockets as used in everest-framework Signed-off-by: Kai-Uwe Hermann --- dependencies.yaml | 20 ++++++++++++++++++++ lib/CMakeLists.txt | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/dependencies.yaml b/dependencies.yaml index b93fee47e..e2c749e7b 100644 --- a/dependencies.yaml +++ b/dependencies.yaml @@ -35,4 +35,24 @@ libwebsockets: git: https://github.com/warmcat/libwebsockets.git git_tag: v4.3.3 cmake_condition: "LIBOCPP_ENABLE_LIBWEBSOCKETS" + options: + - CMAKE_POLICY_DEFAULT_CMP0077 NEW + - LWS_ROLE_RAW_FILE OFF + - LWS_UNIX_SOCK OFF + - LWS_WITH_SYS_STATE OFF + - LWS_WITH_SYS_SMD OFF + - LWS_WITH_UPNG OFF + - LWS_WITH_JPEG OFF + - LWS_WITH_DLO OFF + - LWS_WITH_SECURE_STREAMS OFF + - LWS_WITH_STATIC OFF + - LWS_WITH_LHP OFF + - LWS_WITH_LEJP_CONF OFF + - LWS_WITH_MINIMAL_EXAMPLES OFF + - LWS_WITH_CACHE_NSCOOKIEJAR OFF + - LWS_WITHOUT_TESTAPPS ON + - LWS_WITHOUT_TEST_SERVER ON + - LWS_WITHOUT_TEST_SERVER_EXTPOLL ON + - LWS_WITHOUT_TEST_PING ON + - LWS_WITHOUT_TEST_CLIENT ON \ No newline at end of file diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index eb0776a7a..a89180a48 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -108,7 +108,7 @@ if(LIBOCPP_ENABLE_LIBWEBSOCKETS) find_package(libwebsockets REQUIRED) target_link_libraries(ocpp PUBLIC - websockets + websockets_shared ) target_compile_definitions(ocpp PRIVATE