-
Notifications
You must be signed in to change notification settings - Fork 986
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] conan_package_library_targets does not set IMPORTED_CONFIGURATIONS #14606
Comments
Thanks for reporting. I think this is a known issue, would be a duplicated of #12654. I'd recommended closing this issue as duplicated and centralized discussion in the other one. In short: this is a limitation of the available information in the |
Hi @memsharded I might be mistaken, but in the linked issue it is mainly about the
But what I am lacking as well is the A possible patch could look like this:
There are surely various ways to write this in a nicer way (e.g. by not having |
The missing IMPORTED_CONFIGURATIONS is leading to CMP0111 for me as explained in #16688 |
Some frameworks use the property in order to find libraries, e.g. like https://github.com/ros/catkin/blob/noetic-devel/cmake/catkin_libraries.cmake#L150 In order to support these kind of usages, this commit adds the property to all targets. This should solve conan-io#14606 and conan-io#16688.
I created a PR #16705 in order to (hopefully) solve this issue. Following the contribution guide I want to ask @conan-io/barbarians to "queue" this issue (although I have to admit, I don't exactly know what this means in this context). |
Some frameworks use the property in order to find libraries, e.g. like https://github.com/ros/catkin/blob/noetic-devel/cmake/catkin_libraries.cmake#L150 In order to support these kind of usages, this commit adds the property to all targets. This should solve conan-io#14606 and conan-io#16688.
@memsharded that sounds great, I really appreciate! Indeed the lifetime of |
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
Steps to reproduce
Install TBB with Conan and observe
cmakedeps_macros.cmake
file. It containsWhich sets
IMPORTED_LOCATION_<config>
, but does not setIMPORTED_CONFIGURATIONS
.As a I users, sometimes I need an access to library location. So, I have to understand imported configurations and then take appropriate
IMPORTED_LOCATION_<config>
, but Conan does not do it.It's a good practice to set this property (done by cmake automatically)
Logs
No response
The text was updated successfully, but these errors were encountered: