-
Notifications
You must be signed in to change notification settings - Fork 991
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
[question] How can I find the shared zlib package in CMake on Windows #17513
Comments
Hi @molotok-sms Thanks for your feedback. The message The thing is that it doesn't matter much that the dll is not found. The If you want to have targets defined as SHARED IMPORTED, instead of the default INTERFACE IMPORTED targets that the |
In accordance with CMake documentation, my tests and tests of my collegues, the present of such Unknown Targets is not enough and it does not work in my environment. The CMake documentation says about
Cases:
The good and short example of the regular case is At the same time, I managed to fix the issue with OpenSSL:
but it can't be applied to I haven't managed to find now, but I have seen the proposal to make separate declarations of static and shared library names, something like |
What is your question?
Hi!
It seems I have read a lot of materials, but I still don't know how I can find the SHARED ZLIB package in CMake on Windows.
As you know:
I have the CMake v3.31.1 and Conan 2.10.0.
I am trying to do it in that way:
and I have the error:
The recipe of Zlib contains the following lines:
but the
conan_package_library_targets
function from thecmakedeps_macros.cmake
file doesn't know how to check this shared library in the right way.How can I find the shared Zlib library in CMake from Conan on Windows?
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: