aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorRonan Le Martret <ronan.lemartret@iot.bzh>2017-06-12 11:38:38 +0200
committerRonan Le Martret <ronan.lemartret@iot.bzh>2017-06-12 11:46:24 +0200
commitaf3cc6496e6c4372b05e9559e349a7fd41ac993e (patch)
tree191747636a9f53030400a7f1844cb184f452fec3 /cmake
parentf3e177c12b5f4e971240698090d2998d8727e04b (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.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/common.cmake b/cmake/common.cmake
index 6daba89..3468813 100644
--- a/cmake/common.cmake
+++ b/cmake/common.cmake
@@ -333,7 +333,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)