summaryrefslogtreecommitdiff
path: root/cmake/modules/FindGObjectIntrospection.cmake
diff options
context:
space:
mode:
authorAllen Winter <winter@kde.org>2022-06-03 09:14:38 -0400
committerGitHub <noreply@github.com>2022-06-03 09:14:38 -0400
commita2be6d9ca1a1db38ce362a900675f527fc5d12b3 (patch)
tree9861c7b2e995a1650b9a52d0bf896e888ebd7bd3 /cmake/modules/FindGObjectIntrospection.cmake
parent7f704bd9dd9e76f055456fec39b5d037bfdce697 (diff)
parent6908abbf9238295910aef8d5259a8cc38c87329b (diff)
downloadlibical-git-mcclurgm-readme-mainpage.tar.gz
Merge branch 'master' into mcclurgm-readme-mainpagemcclurgm-readme-mainpage
Diffstat (limited to 'cmake/modules/FindGObjectIntrospection.cmake')
-rw-r--r--cmake/modules/FindGObjectIntrospection.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/modules/FindGObjectIntrospection.cmake b/cmake/modules/FindGObjectIntrospection.cmake
index 02841f4f..07098b82 100644
--- a/cmake/modules/FindGObjectIntrospection.cmake
+++ b/cmake/modules/FindGObjectIntrospection.cmake
@@ -16,6 +16,7 @@
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
+# Get gobject-introspection's specified pkg-config variable
macro(_GIR_GET_PKGCONFIG_VAR _outvar _varname)
execute_process(
COMMAND ${PKG_CONFIG_EXECUTABLE} --variable=${_varname} gobject-introspection-1.0
@@ -27,7 +28,7 @@ macro(_GIR_GET_PKGCONFIG_VAR _outvar _varname)
else()
string(REGEX REPLACE "[\r\n]" " " _result "${_result}")
string(REGEX REPLACE " +$" "" _result "${_result}")
- separate_arguments(_result)
+ separate_arguments(_result UNIX_COMMAND ${_result})
set(${_outvar} ${_result} CACHE INTERNAL "")
endif()
endmacro(_GIR_GET_PKGCONFIG_VAR)