Use `pkg_get_variable` to retrieve the value of pkg-config variable

It is a new feature in CMake version 3.4, CMake-3.5 is required for
TDE now.

Signed-off-by: OBATA Akio <obache@wizdas.com>
pull/9/head
OBATA Akio 5 months ago
parent 9a17082878
commit 6feea3aea9

@ -26,11 +26,10 @@ endif( WITH_GCC_VISIBILITY )
if( BUILD_TQCA ) if( BUILD_TQCA )
##### look for tqt3 headers path ##### look for tqt3 headers path
execute_process( pkg_get_variable(
COMMAND ${PKG_CONFIG_EXECUTABLE} TQT_HEADERS_DIRS
--variable=includedir tqt-mt tqt-mt
OUTPUT_VARIABLE TQT_HEADERS_DIRS includedir
OUTPUT_STRIP_TRAILING_WHITESPACE
) )
endif( BUILD_TQCA ) endif( BUILD_TQCA )
@ -66,11 +65,10 @@ endif()
##### look for tqt3 plugins path ##### look for tqt3 plugins path
execute_process( pkg_get_variable(
COMMAND ${PKG_CONFIG_EXECUTABLE} TQT_PLUGINS_DIR
--variable=pluginsdir tqt-mt tqt-mt
OUTPUT_VARIABLE TQT_PLUGINS_DIR pluginsdir
OUTPUT_STRIP_TRAILING_WHITESPACE
) )
if( TQT_PLUGINS_DIR ) if( TQT_PLUGINS_DIR )
set( TQT_PLUGINS_CRYPTO_DIR "${TQT_PLUGINS_DIR}/crypto" ) set( TQT_PLUGINS_CRYPTO_DIR "${TQT_PLUGINS_DIR}/crypto" )

Loading…
Cancel
Save