Fix bundle dependency management in `celix_target_bundle_set_definition`.
@@ -231,6 +231,7 @@ function(celix_target_bundle_set_definition)
foreach(BUNDLE IN LISTS BUNDLES_LIST)
if (TARGET ${BUNDLE})
celix_get_bundle_file(${BUNDLE} BUNDLE_FILE)
+ add_celix_bundle_dependencies(${TARGET_NAME} ${BUNDLE})
elseif (IS_ABSOLUTE ${BUNDLE} AND EXISTS ${BUNDLE})
set(BUNDLE_FILE ${BUNDLE})
else()
@@ -242,7 +243,6 @@ function(celix_target_bundle_set_definition)
else ()
set(BUNDLES "${BUNDLE_FILE}")
endif ()
- add_celix_bundle_dependencies(${TARGET_NAME} ${BUNDLE_TARGET_NAME})
endforeach()
target_compile_definitions(${TARGET_NAME} PRIVATE ${BUNDLE_SET_NAME}=\"${BUNDLES}\")
