Skip to content

Unknown CMake command "python_add_library". #189

Description

@ParamDeshpande

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions