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

[question] Conan2 / Conan1 profile compatibility? #16669

Closed
1 task done
harsszegi opened this issue Jul 15, 2024 · 2 comments
Closed
1 task done

[question] Conan2 / Conan1 profile compatibility? #16669

harsszegi opened this issue Jul 15, 2024 · 2 comments
Assignees

Comments

@harsszegi
Copy link

What is your question?

Hi,

I'm trying to come-up with a plan how to migrate from Conan1 to Conan2 on a step-by-step basis.
My very first issue is the profile compatibility.

E.g. for the "msvc" compiler for Conan2 there is

tools.microsoft.msbuild:vs_version=16 (#16649 (comment))

but it doesn't seem to be working with Conan1.

So my question is it possible to use the same profiles for Conan1 and Conan2?

Thanks,

Have you read the CONTRIBUTING guide?

  • I've read the CONTRIBUTING guide
@memsharded memsharded self-assigned this Jul 15, 2024
@memsharded
Copy link
Member

Hi @harsszegi

So my question is it possible to use the same profiles for Conan1 and Conan2?

In some simple cases, it might be possible to have the same profiles, but in the general case, it isn't:

  • Visual compiler has changed from Visual Studio => msvc
  • The compiler.cppstd is totally recommended in Conan 2, almost necessary.

In any case, the recommended way to share configuration, including profiles is with conan config install (or conan config install-pkg using Conan packages in Conan2), because there are many other configuration files that might need to be shared as well, from custom settings.yml, profile files, hooks, many of the new plugin extensions in Conan 2, the global.conf...). So it is expected that the configurations in general will be different in Conan 1 and Conan 2.

@harsszegi
Copy link
Author

Awesome, thanks a lot for the quick response @memsharded , closing it!

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

2 participants