meta-openembedded/meta-python/recipes-devtools/python/python3-pybind11-json_0.2.13.bb
Tafil Avdyli c88db38ad6
python3-pybind11-json: fix Targets.cmake trying to reference host
The resulting pybind11_jsonTargets.cmake in the dev-package adds an
absolute path to python include directories in the target properties:

  set_target_properties(pybind11_json PROPERTIES
    INTERFACE_INCLUDE_DIRECTORIES "/usr/include/python3.13;${_IMPORT_PREFIX}/include"
  )

The patch removes ${PYTHON_INCLUDE_DIRS} which is set by pybind11 from
set_target_properties to remove the poisonous host path.

Signed-off-by: Tafil Avdyli <tafil@tafhub.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 0332dae9bb2ff79e4a4faa45c42d96e0dccee4db)
Signed-off-by: Tafil Avdyli <tafil@tafhub.de>
Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
2026-02-25 13:00:45 +05:30

14 lines
441 B
BlitzBasic

SUMMARY = "Using nlohmann::json with pybind11"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=0e25ff0ec476d06d366439e1120cce98"
SRCREV = "b02a2ad597d224c3faee1f05a56d81d4c4453092"
SRC_URI = "git://github.com/pybind/pybind11_json;branch=master;protocol=https \
file://0001-CMakeLists-drop-PYTHON_INCLUDE_DIRS-from-interface.patch"
DEPENDS += "nlohmann-json python3-pybind11"
S = "${WORKDIR}/git"
inherit cmake