-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[bug] check_c_source_compiles for openssl is not working with CMakeToolChain and Visual Studio generator #12012
Comments
Quick question: if not using |
Yes |
From what I see in https://cmake.org/cmake/help/latest/module/CheckCSourceCompiles.html, |
The failure is only with the standard CMake "Visual Studio" generator, running manually the cmake project configured by conan with |
related issue: #12180 |
I've experienced the same in the following context:
The
If I change the library type to
Is it possible to define these micro-targets as |
I see this being pushed along the 1.x track of releases, but I wanted to report that this is happening with 2.0.14 as well. It's basically blocking us from being able to use OpenSSL as a dependency via conan unfortunately, which also blocks a number of other libraries (such as libcurl):
|
Should also mention: I ran into this issue while working on a Git recipe, due to this I am unable to use the provided CMake file. |
I tried the following workaround and it works fine, at least with my recipe:
|
We are releasing in Conan 2.9 a completely new
Current known pending functionality (to be added soon):
The new Your feedback is very importantAs this is a major change, we will only remove the conf gate when we get confirmation from users that it works and solve the issues. Please try the new generator for your project, and let us know if it works. If it doesn't, please re-open this ticket and let us know what failed. Thanks very much! |
Environment Details (include every applicable attribute)
Steps to reproduce (Include if Applicable)
self.requires("openssl/1.1.1q")
LINK_LIBRARIES(OpenSSL::SSL OpenSSL::Crypto)
=> you get the following error:
Note: the error does not appear if you use another generator like Ninja.
This error was found when working on this pull request: conan-io/conan-center-index#12615
The text was updated successfully, but these errors were encountered: