Skip to content

Commit

Permalink
Fixing OpenSSL search on installer (#3717)
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Barro <[email protected]>
  • Loading branch information
MiguelBarro authored Jul 17, 2023
1 parent 5ff485f commit d0cc5a6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,11 @@ if(LINK_SSL)
find_package(OpenSSL REQUIRED)\n\
endfunction()"
)
set(FASTRTPS_INSTALLER_OPT_DEPS "find_fastdds_deployed_openssl()")
set(FASTRTPS_INSTALLER_OPT_DEPS "\
if (\${type} STREQUAL \"static\")\n\
find_fastdds_deployed_openssl()\n\
endif()")

elseif(WIN32)
# windows from sources only requires OpenSSL on static libraries
set(FASTRTPS_PACKAGE_WIN32_OPT_DEPS "find_package(OpenSSL REQUIRED)")
Expand Down

0 comments on commit d0cc5a6

Please sign in to comment.