HomePhabricator
Diffusion MITK 8ab436927e00

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

Description

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

Crypto uses #pragma comment(lib) in Crypto.h to link to 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.

Details

Provenance
kislinskAuthored on Sep 28 2023, 11:56 AM
kislinskPushed on Sep 28 2023, 3:23 PM
Differential Revision
Restricted Differential Revision
Parents
rMITK95e0615a3793: Change parameter naming in mitkPixelBasedParameterFitImageGeneratorTest.
Branches
Unknown
Tags
Unknown
Tasks
T30213: Poco fails to build if the library names of OpenSSL are not libcrypto.lib and libssl.lib