-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4572b93
commit 930b5e1
Showing
2 changed files
with
18 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,15 @@ | ||
# Macros and functions for handling of WolfSSL | ||
# | ||
# Copyright (c) 2024 Netdata Inc. | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
function(netdata_is_there_wolfssl) | ||
pkg_check_modules(TLS IMPORTED_TARGET wolfssl) | ||
|
||
list(APPEND CMAKE_REQUIRED_LIBRARIES wolfssl) | ||
check_function_exists(wolfSSL_set_alpn_protos HAVE_WOLFSSL_SET_ALPN_PROTOS) | ||
if(NOT HAVE_WOLFSSL_SET_ALPN_PROTOS) | ||
message(FATAL_ERROR "Your WolfSSL library has not been compiled with the OPENSSL_EXTRA flag, which is necessary to create symbols for the OpenSSL API that Netdata uses.") | ||
endif() | ||
endfunction() | ||
|