pybind / pybind/scikit_build_example
Unknown CMake command "python_add_library".
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 148
- Forks
- 39
- Avg merge
- 8d 2h
- Merged PRs (30d)
- 1
Description
I followed simple git clone and tried doing pip install ./scikit_build_example
ended up with this error
Unknown CMake command "python_add_library".
had to make a small tweak in CMakeLists.txt and added this line find_package(Python COMPONENTS Interpreter Development REQUIRED) before the line find_package(pybind11 CONFIG REQUIRED)
Contributor guide
No contributing guide indexed for this repository
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
Read CMakeLists.txt around find_package(pybind11 CONFIG REQUIRED), then reproduce the failure with pip install ./scikit_build_example. Done means the package builds without the Unknown CMake command error and no manual edit is needed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100