1
# - try to get pkgconfig variables
3
# Copyright (C) 2010, Pino Toscano, <pino@kde.org>
4
# Copyright (C) 2014, Corentin Noël, <tintou@mailoo.org>
6
# Redistribution and use is allowed according to the terms of the BSD license.
7
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
9
macro(GET_PKGCONFIG_VAR _outvar _varname _filename)
11
COMMAND ${PKG_CONFIG_EXECUTABLE} --variable=${_varname} ${_filename}
12
OUTPUT_VARIABLE _result
18
string(REGEX REPLACE "[\r\n]" " " _result "${_result}")
19
string(REGEX REPLACE " +$" "" _result "${_result}")
20
separate_arguments(_result)
21
set(${_outvar} ${_result} CACHE INTERNAL "")
23
endmacro(GET_PKGCONFIG_VAR)
b'\\ No newline at end of file'