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

extensions: avoid useless duplication of headers #289

Merged
merged 3 commits into from
Jan 31, 2023

Conversation

eli-schwartz
Copy link

The export header is identical between the main library and the extensions. It is generated from the same template, the libraries share the same properties, and the only difference is that they use different symbol names. Let them share a header.

Further cleanup is possible via commonmark#453

add_compiler_export_flags() is deprecated since CMake 3.0, and was
removed a long time ago in cmark via commit
abf3a7a -- but preserved in cmark-gfm's
modifications.
The export header is identical between the main library and the
extensions. It is generated from the same template, the libraries share
the same properties, and the only difference is that they use different
symbol names. Let them share a header.
@phillmv phillmv merged commit 52c5e07 into github:master Jan 31, 2023
anticomputer added a commit to anticomputer/commonmarker that referenced this pull request Apr 6, 2023
cmark-gfm removed the redundant extensions header in
github/cmark-gfm#289
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants