CMake: use imported target for pybind11.
This accounts for the use of either the system or the vendored pybind11. Fixes #1428.
This commit is contained in:
parent
284fb3e874
commit
43b2f38520
@ -76,6 +76,6 @@ target_link_libraries(nextpnr_kernel INTERFACE
|
||||
|
||||
if (BUILD_PYTHON)
|
||||
target_link_libraries(nextpnr_kernel INTERFACE
|
||||
pybind11_headers
|
||||
pybind11::headers
|
||||
)
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user