[cmake-developers] FindOpenSSL binaries

Harry Mallon Harry at codexdigital.com
Thu Sep 15 10:22:42 EDT 2016


Hello,

1. We use the openssl binary for encrypting things in a cmake step. It would be nice if FindOpenSSL could find the binary "openssl" as well as the includes and libs, so we can use the same versions as we link easily. Maybe something like the below would do:

...

# ``OPENSSL_EXECUTABLE ``
#   The openssl binary.

...

find_path(OPENSSL_EXECUTABLE
  NAMES
    openssl
  ${_OPENSSL_ROOT_HINTS_AND_PATHS}
  PATH_SUFFIXES
    bin
)

...

2. Should "OPENSSL_INCLUDE_DIR" be "OPENSSL_INCLUDE_DIRS" or is that not a hard-and-fast rule?

Thanks,
Harry

Harry Mallon
CODEX | Software Engineer
60 Poland Street | London | England | W1F 7NT
E harry at codexdigital.com | T +44 203 7000 989


More information about the cmake-developers mailing list