From 2beffef345c6bf96078aae711d78dec973a93ef6 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Tue, 23 Oct 2018 21:58:46 +0200 Subject: Fix: mismatch between built and expected lib name The module expect that a library built without specifying any prefix to the target will then have no prefix but cmake set it to "lib" by default. So we need to adjust the expected lib file name expected in the module. Change-Id: I6feaa6c5ff9efd9a06ac90a515e6e454b6d90421 Signed-off-by: Romain Forlot --- cmake/cmake.d/03-macros.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmake/cmake.d') diff --git a/cmake/cmake.d/03-macros.cmake b/cmake/cmake.d/03-macros.cmake index eb7f83c..651e3d7 100644 --- a/cmake/cmake.d/03-macros.cmake +++ b/cmake/cmake.d/03-macros.cmake @@ -367,7 +367,8 @@ macro(project_targets_populate) get_target_property(OUT ${TARGET} OUTPUT_NAME) if(P MATCHES "NOTFOUND$") - if (${T} STREQUAL "LIBRARY") + if (${T} STREQUAL "LIBRARY" OR + ${T} MATCHES "^BINDINGV?.?$") set(P "lib") else() set(P "") -- cgit 1.2.3-korg