Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 1 | From 69d8e34f60e6a124f699365101e854076cfe0f1b Mon Sep 17 00:00:00 2001 |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
| 3 | Date: Tue, 27 Oct 2015 16:02:19 +0200 |
| 4 | Subject: [PATCH] FindGObjectIntrospection.cmake: prefix variables obtained |
| 5 | from pkg-config with PKG_CONFIG_SYSROOT_DIR |
| 6 | |
| 7 | See discussion at https://bugs.webkit.org/show_bug.cgi?id=232933 for |
| 8 | reasons why this is not approproiate for upstream submission. |
| 9 | |
| 10 | Upstream-Status: Inappropriate [oe-core specific] |
| 11 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 12 | |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 13 | --- |
| 14 | Source/cmake/FindGI.cmake | 3 +++ |
| 15 | 1 file changed, 3 insertions(+) |
| 16 | |
| 17 | diff --git a/Source/cmake/FindGI.cmake b/Source/cmake/FindGI.cmake |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 18 | index fdc56b21..d42eca52 100644 |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 19 | --- a/Source/cmake/FindGI.cmake |
| 20 | +++ b/Source/cmake/FindGI.cmake |
| 21 | @@ -72,6 +72,9 @@ if (PKG_CONFIG_FOUND) |
| 22 | endif () |
| 23 | endif () |
| 24 | |
| 25 | +set(_GI_SCANNER_EXE "$ENV{PKG_CONFIG_SYSROOT_DIR}${_GI_SCANNER_EXE}") |
| 26 | +set(_GI_COMPILER_EXE "$ENV{PKG_CONFIG_SYSROOT_DIR}${_GI_COMPILER_EXE}") |
| 27 | + |
| 28 | find_program(GI_SCANNER_EXE NAMES ${_GI_SCANNER_EXE} g-ir-scanner) |
| 29 | find_program(GI_COMPILER_EXE NAMES ${_GI_COMPILER_EXE} g-ir-compiler) |
| 30 | |