diff options
author | Ronan Le Martret <ronan.lemartret@iot.bzh> | 2017-06-12 11:38:38 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-10-15 18:22:47 +0200 |
commit | 6933df5ae5029bb1a672b65334c5124e2159d6dd (patch) | |
tree | b8a7604dd13f29f6bda364c610e17989aa315301 /cmake | |
parent | 2fda4c1d4eee3884198fcba71ae4e9c9687892c6 (diff) |
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 <ronan.lemartret@iot.bzh>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/common.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
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) |