FindOpenSSL windows does not find DLL file
According to https://cmake.org/cmake/help/latest/command/add_library.html#imported-libraries,
an imported target on windows is expected to have IMPORTED_IMPLIB
and IMPORTED_LOCATION
properties, where IMPORTED_IMPLIB
points to .lib
file and the IMPORTED_LOCATION
points to .dll
FindOpenSSL
only finds the .lib
file and sets it to the IMPORTED_LOCATION
property.
To properly support windows targets (especially .dll
copy tasks) both properties should be populated properly.