Skip to content

Windows CMake 3.10 or newer: Building with POCO_DISABLE_INTERNAL_OPENSSL=OFF does not work #4388

@matejk

Description

@matejk

Describe the bug

Configuring Poco using internal OpenSSL with recent version of CMake fails with an error that the OpenSSL is not found.

To Reproduce

Configure submodule to poco/openssl (git@github.com:pocoproject/openssl.git).

cmake -G "Visual Studio 16 2019" -A x64 POCO_DISABLE_INTERNAL_OPENSSL=OFF -DENABLE_CRYPTO ../poco

Expected behavior

CMake configuration is successful, Poco::Crypto builds successfully.

Please add relevant environment information:

  • OS Type and Version: Windows 11, Visual Studio 2019, CMake 3.27
  • POCO Version: Poco 1.13.0

Additional context

Building with external OpenSSL (for example from https://www.firedaemon.com/get-openssl) and setting OPENSSL_ROOT_DIR to its directory works with CMake.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions