yaml-cpp
yaml-cpp copied to clipboard
Minimize warnings when not the top-level project
Should fix #970 and #764 when trying to add yaml-cpp to other project
You should use YAML_CPP_MAIN_PROJECT for consistency.
https://github.com/jbeder/yaml-cpp/blob/c73ee34704c512ebe915b283645aefa9f424a22f/CMakeLists.txt#L12-L15