You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building a Connext example inside the rticonnextdds-examples repository, if the UseOpenSSL.cmake script is included before searching for the security plugins (and therefore for OpenSSL) in the FindRTIConnextDDS.cmake script, there is a special case that can happen:
The CONNEXTDDS_OPENSSL_DIR CMake variable is set, and the OPENSSL_ROOT_DIR CMake variable is empty.
This can happen and will yield to unexpected results, since the CONNEXTDDS_OPENSSL_DIR variable is not used in the UseOpenSSL script.
To avoid this, we can add a simple check:
if(DEFINED CONNEXTDDS_OPENSSL_DIR ANDNOTDEFINED OPENSSL_ROOT_DIR)
message(WARNING "Ensure you are searching for the security_plugins component of the FindRTIConnextDDS script when using the `CONNEXTDDS_OPENSSL_DIR` variable")
set(OPENSSL_ROOT_DIR "${CONNEXTDDS_OPENSSL_DIR}")
endif()
Steps to reproduce the issue
Expected behavior
Suggested solutions
The text was updated successfully, but these errors were encountered:
System information
What is the current behavior?
When building a Connext example inside the rticonnextdds-examples repository, if the
UseOpenSSL.cmake
script is included before searching for the security plugins (and therefore for OpenSSL) in theFindRTIConnextDDS.cmake
script, there is a special case that can happen:CONNEXTDDS_OPENSSL_DIR
CMake variable is set, and theOPENSSL_ROOT_DIR
CMake variable is empty.This can happen and will yield to unexpected results, since the
CONNEXTDDS_OPENSSL_DIR
variable is not used in the UseOpenSSL script.To avoid this, we can add a simple check:
Steps to reproduce the issue
Expected behavior
Suggested solutions
The text was updated successfully, but these errors were encountered: