Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 1 | From 317a5ac120c44987219bc03486cd2f2d1842c9b9 Mon Sep 17 00:00:00 2001 |
| 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 | Upstream-Status: Pending [review on oe-core list] |
| 8 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
| 9 | --- |
| 10 | Source/cmake/FindGObjectIntrospection.cmake | 1 + |
| 11 | 1 file changed, 1 insertion(+) |
| 12 | |
| 13 | diff --git a/Source/cmake/FindGObjectIntrospection.cmake b/Source/cmake/FindGObjectIntrospection.cmake |
| 14 | index e1f49b4..03a4446 100644 |
| 15 | --- a/Source/cmake/FindGObjectIntrospection.cmake |
| 16 | +++ b/Source/cmake/FindGObjectIntrospection.cmake |
| 17 | @@ -26,6 +26,7 @@ macro(_GIR_GET_PKGCONFIG_VAR _outvar _varname _extra_args) |
| 18 | else () |
| 19 | string(REGEX REPLACE "[\r\n]" " " _result "${_result}") |
| 20 | string(REGEX REPLACE " +$" "" _result "${_result}") |
| 21 | + string(CONCAT _result $ENV{PKG_CONFIG_SYSROOT_DIR} "${_result}") |
| 22 | separate_arguments(_result) |
| 23 | set(${_outvar} ${_result} CACHE INTERNAL "") |
| 24 | endif () |
| 25 | -- |
| 26 | 2.1.4 |
| 27 | |