From 355be53fa6c74021fc6e3ee3683836a6a666223e Mon Sep 17 00:00:00 2001 From: "Laszlo Boszormenyi (GCS)" Date: Sun, 19 Jul 2020 16:29:07 +0200 Subject: [PATCH] cmake: Link with cap if it's found and used --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9a97b7968..06fc6fbcf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -799,6 +799,11 @@ if (LWS_WITH_HUBBUB) list(APPEND LIB_LIST ${LIBHUBBUB_LIBRARIES} ) endif() +if (LWS_HAVE_LIBCAP) + find_library(LIBCAP_LIBRARIES NAMES cap) + list(APPEND LIB_LIST ${LIBCAP_LIBRARIES} ) +endif() + # # Append the "at end" pieces to the lib list