python3-pybind11-json: Specify -DPYBIND11_USE_CROSSCOMPILING=ON to support pybind11 13.x

Add support for pkgconfig
Use python-native during build to avoid host variability

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj
2025-03-21 22:56:23 -07:00
parent c71f8ef024
commit 09b6a82dbf
2 changed files with 63 additions and 2 deletions

View File

@@ -3,10 +3,12 @@ LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=0e25ff0ec476d06d366439e1120cce98"
SRCREV = "32043f433ed987b2c2ce99d689ec337bcbd4ba95"
SRC_URI = "git://github.com/pybind/pybind11_json;branch=master;protocol=https"
SRC_URI = "git://github.com/pybind/pybind11_json;branch=master;protocol=https \
file://d72ad4df929bc9d0882298fc1f85ecf589456ff6.patch"
DEPENDS += "nlohmann-json python3-pybind11"
EXTRA_OECMAKE += "-DPYBIND11_USE_CROSSCOMPILING=ON"
S = "${WORKDIR}/git"
inherit cmake
inherit cmake python3native python3targetconfig