fix: android CMake support (#5733)

This commit is contained in:
Henry Schreiner
2025-06-17 20:04:52 -04:00
committed by GitHub
parent 86e82ddbc2
commit ad9180c120
2 changed files with 13 additions and 1 deletions

View File

@@ -119,7 +119,8 @@ target_link_libraries(
pybind11::module
INTERFACE
pybind11::python_link_helper
"$<$<OR:$<PLATFORM_ID:Windows>,$<PLATFORM_ID:Cygwin>>:pybind11::_ClassicPythonLibraries>")
"$<$<OR:$<PLATFORM_ID:Windows>,$<PLATFORM_ID:Cygwin>,$<PLATFORM_ID:Android>>:pybind11::_ClassicPythonLibraries>"
)
target_link_libraries(pybind11::embed INTERFACE pybind11::pybind11
pybind11::_ClassicPythonLibraries)