diff options
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-pybind11-json')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-pybind11-json/0001-CMakeLists-drop-PYTHON_INCLUDE_DIRS-from-interface.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pybind11-json/0001-CMakeLists-drop-PYTHON_INCLUDE_DIRS-from-interface.patch b/meta-python/recipes-devtools/python/python3-pybind11-json/0001-CMakeLists-drop-PYTHON_INCLUDE_DIRS-from-interface.patch new file mode 100644 index 0000000000..e1bf82e506 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pybind11-json/0001-CMakeLists-drop-PYTHON_INCLUDE_DIRS-from-interface.patch | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | From 6d4af27d1b43860d8deb3d1d2b2a910e82618ac1 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Tafil Avdyli <tafil@tafhub.de> | ||
| 3 | Date: Sat, 24 Jan 2026 09:14:03 +0100 | ||
| 4 | Subject: [PATCH] CMakeLists: drop PYTHON_INCLUDE_DIRS from interface | ||
| 5 | |||
| 6 | Including PYTHON_INCLUDE_DIRS in the INTERFACE list caused a hard-coded | ||
| 7 | Python include directory (e.g. /usr/include/python3.13) to appear in the | ||
| 8 | generated Targets.cmake file. This resulted in a CMake configuration | ||
| 9 | error when the path did not exist: | ||
| 10 | |||
| 11 | Imported target "pybind11_json" includes non-existent path | ||
| 12 | "/usr/include/python3.13" | ||
| 13 | |||
| 14 | pybind11_json is header-only and does not use Python headers, so the | ||
| 15 | include path should not be exported. | ||
| 16 | |||
| 17 | Upstream-Status: Submitted [https://github.com/pybind/pybind11_json/pull/77] | ||
| 18 | Signed-off-by: Tafil Avdyli <tafil@tafhub.de> | ||
| 19 | --- | ||
| 20 | CMakeLists.txt | 1 - | ||
| 21 | 1 file changed, 1 deletion(-) | ||
| 22 | |||
| 23 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
| 24 | index 0be4838..4b305e4 100644 | ||
| 25 | --- a/CMakeLists.txt | ||
| 26 | +++ b/CMakeLists.txt | ||
| 27 | @@ -45,7 +45,6 @@ add_library(${PROJECT_NAME} INTERFACE) | ||
| 28 | |||
| 29 | target_include_directories(${PROJECT_NAME} | ||
| 30 | INTERFACE | ||
| 31 | - ${PYTHON_INCLUDE_DIRS} | ||
| 32 | $<BUILD_INTERFACE:${PYBIND11_JSON_INCLUDE_DIR}> | ||
| 33 | $<INSTALL_INTERFACE:include>) | ||
| 34 | |||
