-
Notifications
You must be signed in to change notification settings - Fork 981
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] find frameworks path is cached in cmake and not invalidated when dependency updates #17224
Comments
Hi @technic Thanks for your report. In some situations it is true that the CMake caching will interfere with dependencies changes. In general, when changing things outside of the current project, like Conan dependencies, we would recommend to invalidate the CMake cache when possible to avoid potential caching issue. In any case, we are moving to a different model, based on the CPS standardization effort (that we are participating in), and we are implementing a new |
I think this can be fixed, if I look at how even better is to do such search in conan during generate() and provide full path to cmake instead of doing find_library calls. This will be faster when doing cmake reconfigure. |
I see. If you think it is worth to try to
This is basically what the new |
I am re-opening this, this was not really solved yet by #16964 |
Describe the bug
this code from cmakedeps_macros.cmake has nasty bug
It caches CONAN_FRAMEWORK_${_FRAMEWORK}_FOUND variable and after conanfile is updated with the new version cmake still uses old cached framework.
This is CMakeDeps generator, conan 1.64. I suppose conan v2 has similar issue, but I didn't check
How to reproduce it
No response
The text was updated successfully, but these errors were encountered: