Skip to content
Snippets Groups Projects
Commit 6795ba38 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

cmake: fix building with peer discovery and without http

parent efb5f8e3
No related branches found
No related tags found
No related merge requests found
...@@ -71,8 +71,11 @@ if (NOT MSVC) ...@@ -71,8 +71,11 @@ if (NOT MSVC)
) )
endif() endif()
if (OPENDHT_HTTP) if (OPENDHT_HTTP OR OPENDHT_PEER_DISCOVERY)
find_path(ASIO_INCLUDE_DIR asio.hpp REQUIRED) find_path(ASIO_INCLUDE_DIR asio.hpp REQUIRED)
endif ()
if (OPENDHT_HTTP)
find_package(Restinio REQUIRED) find_package(Restinio REQUIRED)
find_library(FMT_LIBRARY fmt) find_library(FMT_LIBRARY fmt)
add_library(fmt SHARED IMPORTED) add_library(fmt SHARED IMPORTED)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment