aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
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 "")