This is an automated email from the ASF dual-hosted git repository.

pengzheng pushed a commit to branch feature/556-osgi-uninstall
in repository https://gitbox.apache.org/repos/asf/celix.git


The following commit(s) were added to refs/heads/feature/556-osgi-uninstall by 
this push:
     new 55cd8814 Fix misuse of DEPENDS in add_custom_target for a target 
rather than a file.
55cd8814 is described below

commit 55cd88149b7011c052600cc98a3ce70dcbef5049
Author: PengZheng <[email protected]>
AuthorDate: Tue Jun 6 16:10:30 2023 +0800

    Fix misuse of DEPENDS in add_custom_target for a target rather than a file.
---
 cmake/cmake_celix/BundlePackaging.cmake | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cmake/cmake_celix/BundlePackaging.cmake 
b/cmake/cmake_celix/BundlePackaging.cmake
index 972df6cb..51f4f35c 100644
--- a/cmake/cmake_celix/BundlePackaging.cmake
+++ b/cmake/cmake_celix/BundlePackaging.cmake
@@ -266,8 +266,9 @@ function(add_celix_bundle)
         )
     endif()
     add_custom_target(${BUNDLE_TARGET_NAME}_bundle
-        DEPENDS ${BUNDLE_TARGET_NAME} 
"$<TARGET_PROPERTY:${BUNDLE_TARGET_NAME},BUNDLE_FILE>"
+        DEPENDS "$<TARGET_PROPERTY:${BUNDLE_TARGET_NAME},BUNDLE_FILE>"
     )
+    add_dependencies(${BUNDLE_TARGET_NAME}_bundle ${BUNDLE_TARGET_NAME})
     add_dependencies(celix-bundles ${BUNDLE_TARGET_NAME}_bundle)
     #######################################################################
    

Reply via email to