Replies: 1 comment
|
You don't need to manually copy the files from pybind11's Python package intentionally keeps its CMake config under the Python environment. If you want a global installation, pybind11 provides the pip install "pybind11[global]"This installs the headers and CMake files into the environment's standard locations (for example, For a Cygwin package specifically targeting find_package(pybind11 CONFIG REQUIRED)and pybind11 also supports explicitly pointing CMake at the installed config with So I wouldn't recommend manually copying individual files; either use the See also the current pybind11 installation and CMake documentation: |
Uh oh!
There was an error while loading. Please reload this page.
Hi there,
Recently I've been working on a Cygwin package for pybind11, and I have found that pip automatically installs the cmake files inti .../site-packages/pybind11/share/cmake instead of /usr/cmake.
Is there a way I can change this behaviour, or do I just need to manually copy those files?
Hamish
All reactions