-
I am trying to use pybind11 2.10.0 in a Conan driven build environment Then I invoke Conan to install all requirements Conan feels that it needs to build pybind11 from source( ah the mysteries of Conan!) , but that is failing at the pybind11 CMake stage. We have our own build of Python 3.8.12 in this environment. Clearly this is likely tripping up the pybind11 build, although it is able to find our custom python. Ideally I would like Conan to tell pybind11 to forget about looking for Python. This is at the top of FindPythonLibsNew.cmake. So somehow I would like to set these CMake variables in Conan so the searching for Python is skipped. I have tried various options in the conanfile.py but am clearly missing something. if(PYTHONLIBS_FOUND AND PYTHON_MODULE_EXTENSION) CMake Error at C:/Users/build/.conan/data/pybind11/2.10.1///package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/lib/cmake/pybind11/FindPythonLibsNew.cmake:240 (message): |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Well, the only solution to my problem was to not use Conan-center for pybind11 and use a local version with PYBIND11_NOPYTHON |
Beta Was this translation helpful? Give feedback.
Well, the only solution to my problem was to not use Conan-center for pybind11 and use a local version with PYBIND11_NOPYTHON