-
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] Linking a package with two dlls in the lib directory fails #14225
Comments
The problem is that in conan_package_library_targets every iteration adds .dll to CMAKE_FIND_LIBRARY_SUFFIXES that leaks to subsequent calls to find_library
|
Hi @musto Thanks for your report. I'd say this is not really a bug, but the problem is Said that, I am not against of making sure that |
It is Visual Studio default behavior to generate the dll and lib files to the same directory when building the project. |
Sure, you are right about the Regarding my comment above, as you already did the research and identified the location and the leak, would you like to contribute the fix yourself with a PR? That is just an offer, please let us know if you don't, and we will manage. Thanks! |
I would appreciate it if someone else made a PR. Thank you. |
Changelog: Bugfix: fix leaking of ``CMakeDeps`` ``CMAKE_FIND_LIBRARY_SUFFIXES`` variable Docs: Omit Close #14225
Fixed in #14253, it will be in next 2.0.8 release |
Environment details
Steps to reproduce
For example with "prebuilt_local_project" conan tutorial modified to contain 2 dlls:
C:\conan_examples2\tutorial\creating_packages\other_packages\prebuilt_local_project>conan new cmake_lib -d name=hello -d version=0.1
Modify CMakeLists.txt:
Modify conanfile.py:
C:\conan_examples2\tutorial\creating_packages\other_packages\prebuilt_local_project>conan build . -s build_type=Debug -o shared=True
C:\conan_examples2\tutorial\creating_packages\other_packages\prebuilt_local_project>conan export-pkg . -s build_type=Debug -o shared=True
Logs
No response
The text was updated successfully, but these errors were encountered: