Compare commits

..

1 Commits

Author SHA1 Message Date
Michael Carlstrom f93e9098fc
Merge 6e5df0f99b into ad9fd39e14 2024-09-17 13:46:28 -04:00
1 changed files with 4 additions and 0 deletions

View File

@ -274,6 +274,10 @@ 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`