HomePhabricator
Diffusion MITK 859410e34da9

Fix CMake build of Poco Crypto with custom libcrypto.lib names

Description

Fix CMake build of Poco Crypto with custom libcrypto.lib names

Summary:
Poco Crypto uses #pragma comment(lib) in Crypto.h to link to OpenSSL's libcrypto.lib. Some OpenSSL builds on Windows have different names for libcrypto.lib and these are set correctly via CMake but still Crypto.h also links to libcrypto.lib, which cannot be found in these cases.

The same applies for libssl.lib.

We set POCO_NO_AUTOMATIC_LIBS to disable hard-coded linking in Crypto.h.

Fixes T30213.

Test Plan: CI builds.

Reviewers: floca, O1 MITK Reviewer Group I

Reviewed By: floca, O1 MITK Reviewer Group I

Maniphest Tasks: T30213

Differential Revision: https://phabricator.mitk.org/D866