CMake: handle backward compatibility

Open
#1,285 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cmake, cpp
Domain
build-system

Research direction

Start by reading the project’s CMake configuration and check how it links yaml-cpp targets. Compare the target names supported by older and newer yaml-cpp versions, then determine whether the configuration can accommodate both. Done means the project configures against both target naming schemes; the issue names no specific files or tests.

Written by the indexing model from the issue text.

Description

documentation enhancement help wanted

Some versions of yaml-cpp require to link cmake targets with yaml-cpp,
while more recent version require to link them with yaml-cpp::yaml-cpp.

Is there a way to handle backward compatibility in CMake so it would work in both cases ? Many Linux distros still ship with versions that require yaml-cpp.

Many thanks

Dominant language
C++
Stars
6.1k
Forks
2.2k
Avg merge
22h 2m
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from jbeder/yaml-cpp

All issues in jbeder/yaml-cpp

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.