Update yaml-cpp dependency handling
- Added CPM fallback in case package is not found automatically.
- Using
yaml-cpp::yaml-cpp
target instead ofyaml-cpp
to silence deprecation warnings on newer cmake versions.
yaml-cpp::yaml-cpp
target instead of yaml-cpp
to silence deprecation warnings on newer cmake versions.