Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[package] openssl/1.1.1s: missing applink target #23983

Open
patkin opened this issue May 14, 2024 · 0 comments
Open

[package] openssl/1.1.1s: missing applink target #23983

patkin opened this issue May 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@patkin
Copy link

patkin commented May 14, 2024

Description

Missing OpenSSL::applink component during compilation under MSVC.
Cmake throws an error msg and the OPENSSL_APPLINK_SOURCE variable is empty.

OpenSSL::applink
New in version 3.18.

The OpenSSL applink components that might be need to be compiled into projects under MSVC. This target is available only if found OpenSSL version is not less than 0.9.8. By linking this target the above OpenSSL targets can be linked even if the project has different MSVC runtime configurations with the above OpenSSL targets. This target has no effect on platforms other than MSVC.

By cmake doc.

I've read Conan's openssl recipe and I can't find any information about the applink target.

Package and Environment Details

  • Package Name/Version: openssl/1.1.1s
  • Operating System+version: Windows 10 Pro
  • Conan version: conan 1.60.0
  • Python version: Python 3.9.9
  • CMake version: 3.26.3

Conan profile

[settings]
os=Windows
os_build=Windows
arch=x86
arch_buils=x86
compiler=Visual Studio
compiler.version=17

Steps to reproduce

  1. Add applink to project: target_link_libraries(test PRIVATE OpenSSL::applink)
  2. Run cmake

Logs

error: Target "test" links to:

  OpenSSL::applink

but the target was not found.  Possible reasons include:

  * There is a typo in the target name.
  * A find_package call is missing for an IMPORTED target.
  * An ALIAS target is missing.
@patkin patkin added the bug Something isn't working label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant