From: "plaisthos (Code Review)" Date: Thu, 2 Apr 2026 11:43:57 +0000 References: Reply-To: arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net Message-ID: <62da6929bb99434122e56f2c6d0045f428ee70f5-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="D0U/YJTYszA="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: Fix building wolfSSL with CMake List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: openvpn-devel --D0U/YJTYszA= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable plaisthos has uploaded this change for review. ( http://gerrit.openvpn.net/= c/openvpn/+/1604?usp=3Demail ) Change subject: Fix building wolfSSL with CMake ...................................................................... Fix building wolfSSL with CMake This fixes not finding the includes and add the define that our autoconf script also adds. Change-Id: I355760e43c3e2da0dda0cdec6e4253c028cefe38 --- M CMakeLists.txt 1 file changed, 2 insertions(+), 0 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/04/1604/1 diff --git a/CMakeLists.txt b/CMakeLists.txt index 198c98f..c3473fb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -323,7 +323,9 @@ elseif (${WOLFSSL}) pkg_search_module(wolfssl wolfssl REQUIRED) target_link_libraries(${target} PUBLIC ${wolfssl_LINK_LIBRARIES}) + target_include_directories(${target} PRIVATE ${wolfssl_INCLUDE_DIR= S}) target_include_directories(${target} PRIVATE ${wolfssl_INCLUDE_DIR= S}/wolfssl) + target_compile_definitions(${target} PRIVATE EXTERNAL_OPTS_OPENVPN) else () find_package(OpenSSL REQUIRED) target_link_libraries(${target} PUBLIC OpenSSL::SSL OpenSSL::Crypt= o) -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1604?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: newchange Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I355760e43c3e2da0dda0cdec6e4253c028cefe38 Gerrit-Change-Number: 1604 Gerrit-PatchSet: 1 Gerrit-Owner: plaisthos Gerrit-CC: openvpn-devel --D0U/YJTYszA= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

plaisthos has upl= oaded this change for review.

View Change

Fix building wolfSSL with CMake

This fixes not finding the inclu= des and add the define that our
autoconf script also adds.

Change= -Id: I355760e43c3e2da0dda0cdec6e4253c028cefe38
---
M CMakeLists.txt1 file changed, 2 insertions(+), 0 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/04/1604/1<=
/pre>
+        target_include_directories(${target} PRIVATE ${wolfs=
sl_INCLUDE_DIRS})
target_include_directories(${tar= get} PRIVATE ${wolfssl_INCLUDE_DIRS}/wolfssl)
+ target_compile_definitions(${target} PRIV= ATE EXTERNAL_OPTS_OPENVPN)
else ()
= find_package(OpenSSL REQUIRED)
target_link_l= ibraries(${target} PUBLIC OpenSSL::SSL OpenSSL::Crypto)

To view, visit change 1604. To unsubscribe, or for help writin= g mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I355760e43c3e2da0dda0cdec6e4= 253c028cefe38
Gerrit-Change-Number: 1604
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
= --D0U/YJTYszA=--