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

support for configuring generators? #186

Open
scottw-finao opened this issue Jun 25, 2024 · 1 comment
Open

support for configuring generators? #186

scottw-finao opened this issue Jun 25, 2024 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@scottw-finao
Copy link

I'm not very proficient with C++ so I'm not sure if there's already some way of doing this. But some of the code I was working with recommended adding 'generator' configurations in the conan txt file. I see this plugin seems to be using a yaml file instead so i tried adding generators in there after the requirements and it seemed to work. The only problem is, if I try to add a new library with the plugin, it tries to auto re-generate the yml file and either mangles or completely removes the generators.

@czoido
Copy link
Contributor

czoido commented Jun 26, 2024

Hi @scottw-finao,

Thanks a lot for your question. The plugin works by using a conandata.yml that stores the requirements that are added with the GUI and a conanfile.py that reads that conandata.yml and sets the generators and layout. If you need some specific changes in those files, you can just remove the guard comments in the beginning of the file, so that the plugin knows that those can't be overwritten and add the content you need there. Be aware that if you modify the conandata.yml the plugin will not add requirements through the GUI any more.
If you are using a conanfile.txt this section of the docs could be useful to understand how to transition to a conanfile.py that is more powerful and configurable.

Hope this helps.

@czoido czoido added the question Further information is requested label Jun 26, 2024
@czoido czoido self-assigned this Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants