From 74dcbf97af4e55cb29932dad7d65472403c6006d Mon Sep 17 00:00:00 2001 From: Mathias Raoul Date: Tue, 6 Aug 2019 14:58:01 +0200 Subject: quic: Add PICOTLS_INCLUDE_DIR var to CMakeLists. Type: fix Change-Id: I10ebcc653491d11ca798e0a60be6eeef82c41766 Signed-off-by: Mathias Raoul --- src/plugins/quic/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/plugins') diff --git a/src/plugins/quic/CMakeLists.txt b/src/plugins/quic/CMakeLists.txt index 5652bdb313e..43fb483a7bc 100644 --- a/src/plugins/quic/CMakeLists.txt +++ b/src/plugins/quic/CMakeLists.txt @@ -16,6 +16,7 @@ message(STATUS "Looking for quicly") unset(QUIC_LINK_LIBRARIES) find_path(QUICLY_INCLUDE_DIR NAMES quicly.h) +find_path(PICOTLS_INCLUDE_DIR NAMES picotls.h) find_library (QUICLY_LIBRARY NAMES "libquicly.a") find_library (PICOTLS_CORE_LIBRARY NAMES "libpicotls-core.a") find_library (PICOTLS_OPENSSL_LIBRARY NAMES "libpicotls-openssl.a") @@ -28,6 +29,11 @@ list(APPEND QUIC_LINK_LIBRARIES if(QUICLY_INCLUDE_DIR AND QUIC_LINK_LIBRARIES) include_directories (${QUICLY_INCLUDE_DIR}) + + if(PICOTLS_INCLUDE_DIR) + include_directories (${PICOTLS_INCLUDE_DIR}) + endif() + add_vpp_plugin(quic SOURCES certs.c -- cgit 1.2.3-korg