aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-10-15 18:13:58 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-10-16 12:55:29 +0200
commitf75c2d7bc051fcbd4d0589a9204a1d18c5bf3d00 (patch)
treec7842b685ed12b4a501f9655f67ed78ebb816cf1 /cmake
parent765504ef7989150fd69a0b4023d3dcc36190380a (diff)
Set default link flags to the target property
Set default link flags to the target property for binding target. Bug-AGL: SPEC-1821 Change-Id: I76d85c56c34740240c1f7b2dac767d72637ec988 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/cmake.d/03-macros.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmake/cmake.d/03-macros.cmake b/cmake/cmake.d/03-macros.cmake
index 1475c28..e483a4a 100644
--- a/cmake/cmake.d/03-macros.cmake
+++ b/cmake/cmake.d/03-macros.cmake
@@ -367,18 +367,27 @@ macro(project_targets_populate)
endif()
list(APPEND BINDINGS_LIST "${P}${OUT}${S}")
generate_one_populate_target(${P}${OUT}${S} ${PACKAGE_LIBDIR})
+ SET_TARGET_PROPERTIES(${T} PROPERTIES
+ LINK_FLAGS ${BINDINGS_LINK_FLAG}
+ )
elseif(${T} STREQUAL "BINDINGV2")
if(NOT S)
set(S ".so")
endif()
afb_genskel("-2")
generate_one_populate_target(${P}${OUT}${S} ${PACKAGE_LIBDIR})
+ SET_TARGET_PROPERTIES(${T} PROPERTIES
+ LINK_FLAGS ${BINDINGS_LINK_FLAG}
+ )
elseif(${T} STREQUAL "BINDINGV3")
if(NOT S)
set(S ".so")
endif()
afb_genskel("-3")
generate_one_populate_target(${P}${OUT}${S} ${PACKAGE_LIBDIR})
+ SET_TARGET_PROPERTIES(${T} PROPERTIES
+ LINK_FLAGS ${BINDINGS_LINK_FLAG}
+ )
elseif(${T} STREQUAL "EXECUTABLE")
if(NOT S)
set(S "")