From 8f0bdd5fd3eddd9364efc0a09600ca2af117b719 Mon Sep 17 00:00:00 2001 From: Pierre Hallot Date: Tue, 1 Dec 2020 12:05:47 +0100 Subject: [PATCH] Find package libwebsockets if the option is ON. Otherwise, if the package is not installed, configuration will work, but building will fail. Signed-off-by: Pierre Hallot --- src/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d5bca84d..b1d4800b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -130,6 +130,7 @@ endif (CMAKE_SYSTEM_NAME STREQUAL Linux) option(WITH_WEBSOCKETS "Include websockets support?" OFF) option(STATIC_WEBSOCKETS "Use the static libwebsockets library?" OFF) if (WITH_WEBSOCKETS) + find_package(libwebsockets) add_definitions("-DWITH_WEBSOCKETS") endif (WITH_WEBSOCKETS)