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] Can you install the pc files in a different directory other than the builddir? #9496
Comments
Hi @Makogan Yes, with the new Just beware that legacy build system integrations will not directly understand this layout and might need some manual adaption, only the new integrations in |
Hello, Thank you for your reply, I am still a bit lost. From the documentation is seems it should be enough to add the following to the conan.py file:
And then run:
The docs say:
From that I would expect a I am on conan 1.39 under linux and the docs say this feature is available from conan 1.37. Am I doing something wrong? |
Hi @Makogan The Can you please make sure you are using the |
@memsharded How can I check which generator I am using? This is how I declared the generator:
|
Yes, please use: generators = "PkgConfigDeps" you can get more info in this reference page: https://docs.conan.io/en/latest/reference/conanfile/tools.html |
Now I get this error:
I also tried changing things to use:
Instead, but I get the same error. |
Just to make sure, which Conan version are you using? |
This is what I see in the terminal: expat is not explicitly required it might be a dependency of the explicit dependencies:
|
Verified that this works with the layout() above and the new Please do not hesitate to report or ask any other question you might have. Thanks! |
Thank you very much James, I will check the feature out when the next version comes out. |
When following the guides on conan as is, all .pc files will be created in the same directory where the main executable lives.
If a project has a large number of dependencies you end up with dozens of pc files and it becomes challenging for a human to quickly see what is on the directory.
This is important for debugging and for using tools such as renderdoc where one may want to look for a specific file using a UI.
Is it possible to instruct conan to separate pc files form the executable's builddir?
The text was updated successfully, but these errors were encountered: