-
Notifications
You must be signed in to change notification settings - Fork 1k
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] How to switch conan1.x to conan2 in gcc and cmake? #13625
Comments
Hi @freshduer thanks for your question. The new CMake integrations like In your recipe you are missing:
Also:
I'd recommend doing the tutorial in: https://docs.conan.io/2/tutorial/consuming_packages.html. Also the Conan 2.0 |
when i use CmakeDeps,i meet an error which i found this is a bug:
and it will be fix in conan 2.0.4: #13607 #13606 (comment) |
Thanks for the feedback @freshduer That is the only missing piece, if you put your folders in the same drive to avoid that error, then things are working now with the new integrations? If that is the case, we might close this ticket as solved for 2.0.4 |
i want to wait for 2.0.4....i am not in a hurry to fix this problem |
2.0.4 had fixed this problem, finally i can use conan again... This is my reciepe
Cmakelist
I can compile the binaries now. If there are no problems, we can close the issue |
Great, happy that it is working now. Thanks for following up and reporting the final working recipe! |
so how to find my downloaded packages with conan_toolchain.cmake?
My workspace is Clion and gcc12.1 and cmake
- In conan 1.x
I compile my work in the way below:
ok,i get the bin i need,and run in clion
but recently i find conan had updated into conan2, i always want to use new worktools,so i update into conan2
then i get some problems
- In conan 2
so how to find my downloaded packages with conan_toolchain.cmake?
this is my conanfile.py:
The text was updated successfully, but these errors were encountered: