pybind11 is not found correctly when using python venv
Opened this issue · 0 comments
fifield commented
XRT/src/python/pybind11/CMakeLists.txt
Lines 40 to 41 in 5d6c913
This code assumes that if building on ubuntu then packages are in the directory dist-packages
. This is not true if the user (me) is using venv
, which puts things in site-packages
instead. This is problematic because use of venv
is common and is the standard way to create python environments. My current workaround is to hardcode correct search path in to the find_package
line.