From 6933df5ae5029bb1a672b65334c5124e2159d6dd Mon Sep 17 00:00:00 2001 From: Ronan Le Martret Date: Mon, 12 Jun 2017 11:38:38 +0200 Subject: Replace LIBRARIES by LDFLAGS for pkgconfig dep XXX_LIBRARIES provide the lib name, LDFLAGS lib name and path. Change-Id: Iad84a450e2a0876e8c9d284408a43f472e1f275f Signed-off-by: Ronan Le Martret --- cmake/common.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/common.cmake b/cmake/common.cmake index d88f89c..223d484 100644 --- a/cmake/common.cmake +++ b/cmake/common.cmake @@ -338,7 +338,7 @@ foreach (PKG_CONFIG ${PKG_REQUIRED_LIST}) PKG_CHECK_MODULES(${XPREFIX} REQUIRED ${PKG_CONFIG}) INCLUDE_DIRECTORIES(${${XPREFIX}_INCLUDE_DIRS}) - list (APPEND link_libraries ${${XPREFIX}_LIBRARIES}) + list (APPEND link_libraries ${${XPREFIX}_LDFLAGS}) add_compile_options (${${XPREFIX}_CFLAGS}) endforeach(PKG_CONFIG) -- cgit 1.2.3-korg