fix(cmake): `NO_EXTRAS` in `pybind11_add_module` function partially working (#5378)

This commit is contained in:
Hintay 2024-09-20 00:24:35 +09:00 committed by GitHub
parent ad9fd39e14
commit 1f8b4a7f1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 4 deletions

View File

@ -274,10 +274,6 @@ function(pybind11_add_module target_name)
target_link_libraries(${target_name} PRIVATE pybind11::embed)
endif()
if(MSVC)
target_link_libraries(${target_name} PRIVATE pybind11::windows_extras)
endif()
# -fvisibility=hidden is required to allow multiple modules compiled against
# different pybind versions to work properly, and for some features (e.g.
# py::module_local). We force it on everything inside the `pybind11`