mirror of
https://gitea.invidious.io/iv-org/litespeed-quic.git
synced 2024-08-15 00:53:43 +00:00
- [API Change] Packet out Memory Interface (PMI) update: - Split PMI pool return into pmi_release and pmi_return - PMI callbacks take peer_ctx and is_ipv6 arguments - [BUGFIX] Fix use-after-free when certificate is updated - Silence gcc warning in optimized mode by performing useless initialization - cmake: use the standard variable CMAKE_BUILD_TYPE instead of DEVEL_MODE
30 lines
644 B
CMake
30 lines
644 B
CMake
# Copyright (c) 2017 - 2018 LiteSpeed Technologies Inc. See LICENSE.
|
|
|
|
INCLUDE(CheckSymbolExists)
|
|
|
|
CHECK_SYMBOL_EXISTS(
|
|
IP_MTU_DISCOVER
|
|
"netinet/in.h"
|
|
HAVE_IP_MTU_DISCOVER
|
|
)
|
|
|
|
CHECK_SYMBOL_EXISTS(
|
|
IP_DONTFRAG
|
|
"netinet/in.h"
|
|
HAVE_IP_DONTFRAG
|
|
)
|
|
|
|
INCLUDE(CheckIncludeFiles)
|
|
|
|
CHECK_INCLUDE_FILES(regex.h HAVE_REGEX)
|
|
|
|
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/test_config.h.in ${CMAKE_CURRENT_SOURCE_DIR}/test_config.h)
|
|
|
|
|
|
IF(NOT (CMAKE_C_FLAGS MATCHES "-DNDEBUG"))
|
|
# Our test framework relies on assertions, only compile if assertions are
|
|
# enabled.
|
|
#
|
|
add_subdirectory(unittests)
|
|
enable_testing()
|
|
ENDIF()
|