-
Notifications
You must be signed in to change notification settings - Fork 247
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
[develop2] Issues with cmake-conan + CMakeToolchain + VS #544
Comments
Hi @simonimpey
yes, you are right, this CMakeToolchain will be important if you ever build this package as a dependency, with a
Yes, this can be related. CMakeToolchain is generating some presets files, and there could be some interaction. Can you please trying to set def generate(self):
tc = CMakeToolchain(self)
tc.user_presets_path = ""
tc.generate() And see if it still happens? |
Yes that seems to solve the issue parsing the CMakeLists file from Visual Studio. If I might inquire again, why does installing the dependencies of a project via |
Thanks for the feedback.
Because the dependencies must match the current project settings too. This is why the
So doing |
Thanks for the explanation, very useful.
I'm happy to consider this a solution, the package seems to build happily in both Visual Studio and from Conan itself with the generation disabled. Having a Are there any significant side effects of not generating this file when actually creating a package from the conanfile.py recipe? |
No, the only utility is for developers that can call |
Hi,
I'm not certain if this is an issue or user error.
Having migrated a number of our project to conan2/cmake-conan successfully I am trying to fully migrate the last one, which is also used as a dependency, through Conan, by our other projects. It works fine in this use case and is correctly built on demand by Conan when installing it in another project.
However when trying to develop the project itself using Visual Studio I run into an issue whereby the CMake generation step seems to get into an infinite loop. I have attached the output below:
As soon as the CMake generation is done it restarts immediately and continues to repeat the same tasks over and over.
If I run CMake from the command line:
then everything works as expected.
Several points/questions:
I would be grateful for any suggestions on how to solve this issue...
The text was updated successfully, but these errors were encountered: