janbar / openssl-cmake

Build OpenSSL with CMake on MacOS, Win32, Win64 and cross compile for Android, IOS
Other
267 stars 138 forks source link

Strangely named library files mean find_package OpenSSL doesn't work #14

Open skeptopic opened 3 years ago

skeptopic commented 3 years ago

I notices that because this builds OpenSSL with library names like:

crypto_1_1x

instead of crypto

it means if you build/install OpenSSL with this repo, it won't be findable via find_package(OpenSSL)

So I made a little flag in my fork to prevent that renaming. It's called OPENSSL_BUILD_WITH_INSTALL_NAMES

I'm sending a PR if you want to take it!

skeptopic commented 3 years ago

https://github.com/janbar/openssl-cmake/pull/15

janbar commented 3 years ago

Yep, the renaming is effective on Windows platform to be conform with Qt5 usage.