blob: 6516e59118ca34d737afafbe94aa3ac193a10b32 [file] [log] [blame]
# On Windows, we need to copy the OpenSSL dlls to the output directory, so find them here.
if(OPENSSL_FOUND)
if(WIN32)
set(OPENSSL_BIN_FOUND 0)
# Find the .dll files so we can copy them to the output directory.
find_file(LIBEAY_BIN
NAMES
libeay32.dll
HINTS
${_OPENSSL_ROOT_HINTS}
PATH_SUFFIXES
bin)
find_file(SSLEAY_BIN
NAMES
ssleay32.dll
HINTS
${_OPENSSL_ROOT_HINTS}
PATH_SUFFIXES
bin)
if(LIBEAY_BIN)
if(SSLEAY_BIN)
set(OPENSSL_BIN_FOUND 1)
endif(SSLEAY_BIN)
endif(LIBEAY_BIN)
endif(WIN32)
endif(OPENSSL_FOUND)