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

use different profile while using conan install within cmake #574

Open
1 task
laxmij-cmd opened this issue Oct 18, 2023 · 3 comments
Open
1 task

use different profile while using conan install within cmake #574

laxmij-cmd opened this issue Oct 18, 2023 · 3 comments
Assignees

Comments

@laxmij-cmd
Copy link

What is your question?

Hi,

image

As per this documentation, conan install is invoked within cmake.
My issue is: I have to provide different profile path to conan install. How can I do this?

Best Regards
Laxmi

Have you read the CONTRIBUTING guide?

  • I've read the CONTRIBUTING guide
@laxmij-cmd
Copy link
Author

This requirement is only for 1 project. In conan 1.x I was able to do so using conan_cmake_install

@memsharded
Copy link
Member

This looks like a cmake-conan issue, moving it to the right repo

@memsharded memsharded self-assigned this Oct 18, 2023
@memsharded memsharded transferred this issue from conan-io/conan Oct 18, 2023
@memsharded
Copy link
Member

Thanks for your question.
The documentation for this is in https://github.com/conan-io/cmake-conan/tree/develop2#customizing-conan-profiles, something like:

-DCONAN_HOST_PROFILE=default;auto-cmake: perform autodetection as described above, and fallback to the default profile for anything else (default behaviour).
-DCONAN_HOST_PROFILE=clang16: do not perform autodetection, and use the clang16 profile which must exist in the Conan profiles folder (see docs.)

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

No branches or pull requests

2 participants