diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2018-10-23 21:58:46 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-10-23 22:01:39 +0200 |
commit | 2beffef345c6bf96078aae711d78dec973a93ef6 (patch) | |
tree | f0b148566c05c77c5751bdaf3b932306c9f8e117 /cmake/cmake.d | |
parent | 30b1ad67097fa5af762decede7d3928b2484c626 (diff) |
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 <romain.forlot@iot.bzh>
Diffstat (limited to 'cmake/cmake.d')
-rw-r--r-- | cmake/cmake.d/03-macros.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
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 "") |