-
Notifications
You must be signed in to change notification settings - Fork 167
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
Proposal: project kind 'HeaderOnly' for header only libs #483
Comments
What are current warnings you're getting? Empty .a file? |
E.g. from my current build
cgltf and cxxopts are header only libs. One of my workarounds is to just have EDIT:
|
So basically you would need to identify project that doesn't have any buildable files, and then remove it completely from archiving, and linking. |
And from being added as link dependency to other projects, yes. I still think making it explicit through the project type is more elegant, but I got your point about just fixing the existing behavior to be correct. |
Fixing existing behaviour, so that just works without adding anything. As first step you could add generation of dummy file automatically when you detect that there are no buildable files. And then implement it correctly. I'm proposing two step process because 2nd step might be too risky and we could back out to previous state in case of some major issues. |
You mean, generating a Sounds feasible. I'll start adding this to gmake and ninja to see how it works out in practice. |
@bkaradzic (I'm on New Year's break from the 28th until around the 10th of January, so I still have next week do do those checks). |
Hi,
I'd like to add the project kind 'HeaderOnly' for header only libs, i.e. libs for which I want a VS/Xcode project so they appear cleanly in the IDE, but that do not 'build' per se, i.e. no compile/link/ar instructions.
My main motivation is to remove AR warnings with make/ninja files, and possibly linker errors.
What do you think? It's not that much to change, but the addition of this feature is likely to affect all target build types.
Cheers.
The text was updated successfully, but these errors were encountered: