summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2024-07-08 16:22:21 +0900
committerOBATA Akio <obache@wizdas.com>2024-07-08 16:28:27 +0900
commit6feea3aea9ce53f420307e355b06ecb554d1526c (patch)
tree950f6243b3dbc6d9fc8a1373986689ea323d6ab7
parent9a17082878978d775d1dd892b832dc2d3c49b5a6 (diff)
downloadtqca-6feea3aea9ce53f420307e355b06ecb554d1526c.tar.gz
tqca-6feea3aea9ce53f420307e355b06ecb554d1526c.zip
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>
-rw-r--r--ConfigureChecks.cmake18
1 files changed, 8 insertions, 10 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 6c90f15..5538749 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -26,11 +26,10 @@ endif( WITH_GCC_VISIBILITY )
if( BUILD_TQCA )
##### look for tqt3 headers path
-execute_process(
- COMMAND ${PKG_CONFIG_EXECUTABLE}
- --variable=includedir tqt-mt
- OUTPUT_VARIABLE TQT_HEADERS_DIRS
- OUTPUT_STRIP_TRAILING_WHITESPACE
+pkg_get_variable(
+ TQT_HEADERS_DIRS
+ tqt-mt
+ includedir
)
endif( BUILD_TQCA )
@@ -66,11 +65,10 @@ endif()
##### look for tqt3 plugins path
-execute_process(
- COMMAND ${PKG_CONFIG_EXECUTABLE}
- --variable=pluginsdir tqt-mt
- OUTPUT_VARIABLE TQT_PLUGINS_DIR
- OUTPUT_STRIP_TRAILING_WHITESPACE
+pkg_get_variable(
+ TQT_PLUGINS_DIR
+ tqt-mt
+ pluginsdir
)
if( TQT_PLUGINS_DIR )
set( TQT_PLUGINS_CRYPTO_DIR "${TQT_PLUGINS_DIR}/crypto" )