-
Notifications
You must be signed in to change notification settings - Fork 19
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
Remove compiler ID from include directrory #55
Conversation
The exact directory doesn't matter, since the user of the library should always query it with |
Codecov Report
@@ Coverage Diff @@
## main #55 +/- ##
=======================================
Coverage 69.75% 69.75%
=======================================
Files 64 64
Lines 8496 8496
Branches 2534 2534
=======================================
Hits 5926 5926
Misses 784 784
Partials 1786 1786 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
This doesn't cause any real problems because projects both would still resolve to the same header. Projects usually define how their headers are included: |
If the latter becomes possible due to the module install location, it might get used by accident due to pkg-config adding the location to I think Fedora is installing them in |
But almost no other projects install headers this way and they are all fine. What is special about |
It does not, it only requires to not install the module files in a directory which might contain C headers. This project does not have C headers, but other projects which use a similar structure have and would probably be the next to receive a similar patch. If the compiler ID is the problem, any other subdirectory name can be used, the actual path doesn't matter. With the module files being a build time requirement I wonder why the compiler ID is causing problems in the first place?
Packages installing modulefiles into |
Fortran headers are already in a subdirectory. This is sufficient. What other projects would install headers into |
We can split the differences here. I'm happy to accept this patch for installing modules in |
It adds the compiler ID to the include directory: include/mctc-lib/GNU-11.3.0/ This is very unconventional and unnecessary. With this patch it now installs headers into include/mctc-lib/modules.
Ok, I updated the PR. |
It adds the compiler ID to the include directory: include/mctc-lib/GNU-11.3.0/
This is very unconventional and unnecessary.
With this patch it now installs headers into include/mctc-lib which
aligns with the way how most projects install their headers.