From 25dcbc72e2c736cf82790478006397400700e390 Mon Sep 17 00:00:00 2001 From: Lee Clagett Date: Fri, 29 Jul 2022 14:45:40 -0400 Subject: [PATCH] Detect missing HIDAPI in Cmake --- CMakeLists.txt | 5 +++++ Dockerfile | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ebb60b1..159f2a9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -132,6 +132,11 @@ if ("${monero_UNBOUND_LIBRARIES}" STREQUAL "UNBOUND_LIBRARIES-NOTFOUND") unset(monero_UNBOUND_LIBRARIES) endif() +if ("${monero_HIDAPI_LIBRARY}" STREQUAL "HIDAPI_LIBRARY-NOTFOUND") + unset(monero_HIDAPI_INCLUDE_DIR) + unset(monero_HIDAPI_LIBRARY) +endif() + # # Dependencies specific to monero-lws # diff --git a/Dockerfile b/Dockerfile index a1d55c4..1e0580b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,7 +23,6 @@ RUN apt-get install --no-install-recommends -y \ graphviz \ libboost-all-dev \ libexpat1-dev \ - libhidapi-dev \ libldns-dev \ liblzma-dev \ libpgm-dev \