diff options
Diffstat (limited to 'vcpkg/ports/pybind11/android.diff')
| -rw-r--r-- | vcpkg/ports/pybind11/android.diff | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/vcpkg/ports/pybind11/android.diff b/vcpkg/ports/pybind11/android.diff new file mode 100644 index 0000000..1067ff4 --- /dev/null +++ b/vcpkg/ports/pybind11/android.diff @@ -0,0 +1,16 @@ +diff --git a/tools/pybind11NewTools.cmake b/tools/pybind11NewTools.cmake +index e881ca7..c012e2d 100644 +--- a/tools/pybind11NewTools.cmake ++++ b/tools/pybind11NewTools.cmake +@@ -248,10 +248,7 @@ if(TARGET ${_Python}::Module) + # files. + get_target_property(module_target_type ${_Python}::Module TYPE) + if(ANDROID AND module_target_type STREQUAL INTERFACE_LIBRARY) +- set_property( +- TARGET ${_Python}::Module +- APPEND +- PROPERTY INTERFACE_LINK_LIBRARIES "${${_Python}_LIBRARIES}") ++ target_link_libraries(${_Python}::Module INTERFACE ${${_Python}_LIBRARIES}) + endif() + + set_property( |