CMake symlinks are created in the current directory and not in the build directory
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.7k
- Forks
- 662
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 2
Description
cmake -B build can be used instead of mkdir build && cd build && cmake .., but then bin_dir and source_dir symlinks are created in the current directory instead of the build directory, which breaks tests.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with cmake -B build and inspect where the bin_dir and source_dir symlinks are created. No source file or test path is named; done means both symlinks are placed in build and the affected tests no longer break.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100