Skip to content

Commit

Permalink
CMake: use imported target for pybind11.
Browse files Browse the repository at this point in the history
This accounts for the use of either the system or the vendored pybind11.

Fixes #1428.
  • Loading branch information
whitequark committed Jan 21, 2025
1 parent 284fb3e commit 5705ab9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/kernel/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@ target_link_libraries(nextpnr_kernel INTERFACE

if (BUILD_PYTHON)
target_link_libraries(nextpnr_kernel INTERFACE
pybind11_headers
pybind11::headers
)
endif()

0 comments on commit 5705ab9

Please sign in to comment.