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

Disable format Target When Not Building as the Main Project #1231

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

threeal
Copy link
Contributor

@threeal threeal commented Oct 4, 2023

This pull request modifies the YAML_CPP_FORMAT_SOURCE option to default to enabled only when building as the main project. This change prevents conflicts with the format target if this project is included by another project that already has its own format target. Previously, YAML_CPP_FORMAT_SOURCE needed to be manually set to false to avoid this issue.

@jbeder jbeder merged commit 4c061a5 into jbeder:master Oct 11, 2023
27 checks passed
@threeal threeal deleted the disable-format-on-sub-project branch October 11, 2023 03:49
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.

2 participants