From e9ca3c535672f26a455781ccfb076ec6efc88bf4 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Fri, 12 Oct 2018 15:58:37 +0200 Subject: 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 --- cmake/cmake.d/03-macros.cmake | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cmake') 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 "") -- cgit 1.2.3-korg