summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMathias Raoul <mathias.raoul@gmail.com>2019-08-06 14:58:01 +0200
committerAndrew Yourtchenko <ayourtch@gmail.com>2020-08-07 21:45:43 +0000
commit99d7480dd8276dd3e15198df6842d35bc9514589 (patch)
tree694338b47c76337fe479ac1c973d25713423052d /src
parent51a6508d2d683ae019ac8793c829029c11bb7b8a (diff)
quic: Add PICOTLS_INCLUDE_DIR var to CMakeLists.
Type: fix Change-Id: I10ebcc653491d11ca798e0a60be6eeef82c41766 Signed-off-by: Mathias Raoul <mathias.raoul@gmail.com> (cherry picked from commit 74dcbf97af4e55cb29932dad7d65472403c6006d)
Diffstat (limited to 'src')
-rw-r--r--src/plugins/quic/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
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