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.
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 theformat
target if this project is included by another project that already has its ownformat
target. Previously,YAML_CPP_FORMAT_SOURCE
needed to be manually set tofalse
to avoid this issue.