]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fix building wolfSSL with CMake
authorArne Schwabe <arne@rfc2549.org>
Sun, 28 Jun 2026 15:03:15 +0000 (17:03 +0200)
committerGert Doering <gert@greenie.muc.de>
Sun, 28 Jun 2026 20:30:58 +0000 (22:30 +0200)
Change-Id: I355760e43c3e2da0dda0cdec6e4253c028cefe38
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1604
Message-Id: <20260628150320.13244-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg37342.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
CMakeLists.txt
config.h.cmake.in

index 715d02ccc60ebec474a19027b37318a3e2b378f4..4779d69a3a0a88355d0273e567a79f8d48761e36 100644 (file)
@@ -327,6 +327,7 @@ function(add_library_deps target)
     elseif (${WOLFSSL})
         pkg_search_module(wolfssl wolfssl REQUIRED)
         target_link_libraries(${target} PUBLIC ${wolfssl_LINK_LIBRARIES})
+        target_include_directories(${target} PRIVATE ${wolfssl_INCLUDE_DIRS})
         target_include_directories(${target} PRIVATE ${wolfssl_INCLUDE_DIRS}/wolfssl)
     else ()
         find_package(OpenSSL REQUIRED)
@@ -367,6 +368,7 @@ if (${MBED})
 elseif (${WOLFSSL})
     set(ENABLE_CRYPTO_OPENSSL YES)
     set(ENABLE_CRYPTO_WOLFSSL YES)
+    set(EXTERNAL_OPTS_OPENVPN YES)
 else ()
     set(ENABLE_CRYPTO_OPENSSL YES)
 endif ()
index ae1d2643d1275c26df24ec397050f9b073d12e3e..34f289dbabd47b85ec9ac98bb2367a5822baf1ef 100644 (file)
@@ -13,6 +13,7 @@
 
 /* Use wolfSSL crypto library */
 #cmakedefine ENABLE_CRYPTO_WOLFSSL
+#cmakedefine EXTERNAL_OPTS_OPENVPN
 
 /* Enable shared data channel offload */
 #cmakedefine ENABLE_DCO