From 6795ba38383855f8c7c83370eb60f49dcf1483ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com> Date: Thu, 20 May 2021 15:49:11 -0400 Subject: [PATCH] cmake: fix building with peer discovery and without http --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4c8dc145..4a85df4f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -71,8 +71,11 @@ if (NOT MSVC) ) endif() - if (OPENDHT_HTTP) + if (OPENDHT_HTTP OR OPENDHT_PEER_DISCOVERY) find_path(ASIO_INCLUDE_DIR asio.hpp REQUIRED) + endif () + + if (OPENDHT_HTTP) find_package(Restinio REQUIRED) find_library(FMT_LIBRARY fmt) add_library(fmt SHARED IMPORTED) -- GitLab