rticommunity / rticonnextdds-cmake-utils

This repository provides modules and scripts that simplify the process of building and running RTI Connext applications using CMake.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add wolfSSL as a dependency of security_plugins imported target

lulivi opened this issue · comments

commented

Issue information

Field Value
Jira issue key INSTALL-720
OS(s) --
Connext version(s) --
Connext architecture(s) --

Description

Currently, the security_plugins imported target is not linked against WolfSSL.

Steps to reproduce the issue

Expected behavior

Suggested solutions

     # Security plugins
     set(dependencies RTIConnextDDS::c_api)

-    # The OpenSSL imported targets are created by find_package(OpenSSL).
-    if(TARGET OpenSSL::SSL)
-        set(dependencies ${dependencies} OpenSSL::SSL)
-    endif()
+    # The OpenSSL and wolfSSL imported targets are created by
+    # find_package(OpenSSL|wolfSSL).
+    if(TARGET wolfSSL::wolfSSL)
+        set(dependencies ${dependencies} wolfSSL::wolfSSL)
+    else()
+        if(TARGET OpenSSL::SSL)
+            set(dependencies ${dependencies} OpenSSL::SSL)
+        endif()

-    if(TARGET OpenSSL::Crypto)
-        set(dependencies ${dependencies} OpenSSL::Crypto)
+        if(TARGET OpenSSL::Crypto)
+            set(dependencies ${dependencies} OpenSSL::Crypto)
+        endif()
     endif()

     create_connext_imported_target(