summaryrefslogtreecommitdiff
path: root/scripts/wabt-config.cmake.in
diff options
context:
space:
mode:
authorSteven Johnson <srj@google.com>2024-07-31 09:52:28 -0700
committerGitHub <noreply@github.com>2024-07-31 09:52:28 -0700
commit97b9086e728765f2f956fe9263736b0cf933219e (patch)
tree48166ee0fe8a4d93f1e6d2f7ac5942c854176fec /scripts/wabt-config.cmake.in
parented1ce97eef41c598befa962aa97624f5c5b034cf (diff)
downloadwabt-97b9086e728765f2f956fe9263736b0cf933219e.tar.gz
wabt-97b9086e728765f2f956fe9263736b0cf933219e.tar.bz2
wabt-97b9086e728765f2f956fe9263736b0cf933219e.zip
Fix OpenSSL dependency in CMake (#2447)
Diffstat (limited to 'scripts/wabt-config.cmake.in')
-rw-r--r--scripts/wabt-config.cmake.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/wabt-config.cmake.in b/scripts/wabt-config.cmake.in
index 56e8bf8e..d66ff676 100644
--- a/scripts/wabt-config.cmake.in
+++ b/scripts/wabt-config.cmake.in
@@ -1,5 +1,10 @@
cmake_minimum_required(VERSION 3.8)
@PACKAGE_INIT@
+if ("@HAVE_OPENSSL_SHA_H@")
+ include(CMakeFindDependencyMacro)
+ find_dependency(OpenSSL)
+endif ()
+
include("${CMAKE_CURRENT_LIST_DIR}/wabt-targets.cmake")
check_required_components(wabt)