Skip to content
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

[feature] CONAN_RUNTIME_LIB_DIRS for CMakeDeps #17018

Open
1 task done
FeignClaims opened this issue Sep 18, 2024 · 2 comments
Open
1 task done

[feature] CONAN_RUNTIME_LIB_DIRS for CMakeDeps #17018

FeignClaims opened this issue Sep 18, 2024 · 2 comments
Assignees
Milestone

Comments

@FeignClaims
Copy link

What is your suggestion?

Hi! I'm adding a feature to automatically install conan runtimes in a cmake library aminya/project_options#279. Since the usage of conan is optional, the repo chooses to use cmake-conan. However, CONAN_RUNTIME_LIB_DIRS is set by CMakeToolchain while cmake-conan could only supports CMakeDeps, so I couldn't install runtimes when using cmake-conan.

I would like to have some way to collect CONAN_RUNTIME_LIB_DIRS when only CMakeDeps is specified.

Have you read the CONTRIBUTING guide?

  • I've read the CONTRIBUTING guide
@memsharded
Copy link
Member

Thanks for your suggestion @FeignClaims

There are some challenges in defining these kind of variables in CMakeDeps generators, because they are very focused on the find_package() and target interfaces. But I am adding this to the next 2.9 for having a look to see if something can be done.

@jcar87
Copy link
Contributor

jcar87 commented Sep 19, 2024

We can probably define this variable in cmake-conan, I think it would make sense to have it.
@memsharded - the implementation would actually be very similar to the solution for conan-io/cmake-conan#669

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants