summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-10-12 15:58:37 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-10-23 20:54:23 +0200
commite9ca3c535672f26a455781ccfb076ec6efc88bf4 (patch)
tree33ba26ce4eaa3f5e6eeb2f229466ebf676cb0dbe
parent0fdb0715e1e0e927ff8c34297674e7e746046ffe (diff)
set default link flags to the target property
set default link flags to the target property for binding target. Change-Id: I12387d310abd993a5a3861f04c7bc0cef941d2b7 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-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 2aa35d8..9458e2b 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(${TARGET} 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(${TARGET} 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(${TARGET} PROPERTIES
+ LINK_FLAGS ${BINDINGS_LINK_FLAG}
+ )
elseif(${T} STREQUAL "EXECUTABLE")
if(NOT S)
set(S "")