aboutsummaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-11-07 20:17:18 -0800
committerDaniel Stenberg <daniel@haxx.se>2019-11-26 08:32:23 +0100
commit9b879160df01e7ddbb4770904391d3b74114302b (patch)
tree459aa36410942ab4dfc69d424d759d87ec8d5259 /CMake
parent95e94c64fb0290b6c0e66e78de7d7dfd109c4080 (diff)
TLS: add BearSSL vtls implementation
Closes #4597
Diffstat (limited to 'CMake')
-rw-r--r--CMake/FindBearSSL.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/CMake/FindBearSSL.cmake b/CMake/FindBearSSL.cmake
new file mode 100644
index 000000000..20d239a4f
--- /dev/null
+++ b/CMake/FindBearSSL.cmake
@@ -0,0 +1,9 @@
+find_path(BEARSSL_INCLUDE_DIRS bearssl.h)
+
+find_library(BEARSSL_LIBRARY bearssl)
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(BEARSSL DEFAULT_MSG
+ BEARSSL_INCLUDE_DIRS BEARSSL_LIBRARY)
+
+mark_as_advanced(BEARSSL_INCLUDE_DIRS BEARSSL_LIBRARY)