-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
CMake: Do not install config.h, as it is not a public header file. #585
CMake: Do not install config.h, as it is not a public header file. #585
Conversation
Installing this file will lead to clashes with applications, that link against json-c and include their own build-time config.h. Anyways, that particular header file is not needed to build and link against json-c.
This done for the same reasons as we do not ship config.h.
This done for the same reasons as we do not ship config.h.
This done for the same reasons as we do not ship config.h.
This done for the same reasons as we do not ship config.h.
4f62839
to
9a0c54e
Compare
This is done to avoid possible undesired clashes by too generic naming.
Excluding config.h is fine, but we can't do this with arraylist.h, printbuf.h nor linkhash.h. For better or for worse, they're part of the public API and have been for some time now. This would be a good item to put on the todo list for a major 1.0 release though. |
(cherry picked from commit 8b511c4)
config.h is now excluded from install on master and the json-c-0.14 branch. Since that's the best we can do at the moment, I'm closing this. |
Installing this file will lead to clashes with applications, that link against json-c and include their own build-time config.h.
Anyways, that particular header file is not needed to build and link against json-c.
Likewise any public headers with generic names should be prefixed with
json_c
to avoid possible undesired clashes.Please backport these commits to 0.14 as the current release may break building any apllication randomly for no obvious reason for this header file being present.