Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ option(USE_LTO "Use Link-Time Optimization" ${use_lto_default})
# Provide this as an option for now because GMP and Desktop are sometimes unhappy with each other.
option(ENABLE_NETWORKING "Build with networking functionality" ON)
option(ENABLE_NETWORKING_SROUTER "Build with session-router networking support (requires ENABLE_NETWORKING)" ON)
option(ENABLE_NETTLE "Build with Nettle crypto library (independent of onionreq, e.g. for AES-CBC)" ${ENABLE_NETWORKING})

if(USE_LTO)
include(CheckIPOSupported)
Expand Down Expand Up @@ -120,9 +121,9 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)

add_subdirectory(external)

if(ENABLE_NETWORKING)
if(ENABLE_NETWORKING OR ENABLE_NETTLE)
if(NOT TARGET nettle::nettle)
if(BUILD_STATIC_DEPS)
if(BUILD_STATIC_DEPS AND TARGET nettle_external)
message(FATAL_ERROR "Internal error: nettle::nettle target (expected via libquic BUILD_STATIC_DEPS) not found")
else()
find_package(PkgConfig REQUIRED)
Expand Down