SkyWhiteEagle opened a new issue, #642:
URL: https://github.com/apache/celix/issues/642

   Hi,
   
   I am trying to make a project using Celix. I am using Conan V2 and CMake to 
build the project.
   
   I locally exported the Conan recipe from the master branch 
(e1d7fc1b544bc2c43cbcdb6b76f1b66fffccad96, as far as I can tell, the previous 
release is not Conan V2 compatible) and required it in my consumer recipe. I 
set the following options:
   ```python
       default_options = {
           "celix/*:build_framework": True,
           "celix/*:build_shell_tui": True,
           "celix/*:build_shell_wui": True,
       }
   ```
   
   I have the following generators:
   
   ```python
       def generate(self):
           # This generates "conan_toolchain.cmake" in self.generators_folder
           tc = CMakeToolchain(self)
           tc.generate()
   
           # This generates "foo-config.cmake" and "bar-config.cmake" in 
self.generators_folder
           deps = CMakeDeps(self)
           deps.generate()
   ```
   
   In my CMake I have:
   
   ```cmake
   find_package(Celix)
   
   add_celix_container(TestCelixContainer CXX
       BUNDLES
           Celix::ShellCxx
           Celix::shell_tui
   )
   ```
   
   Running CMake, I get the warning following warning, but the build files are 
written nonetheless. 
   ```text
   CMake Warning at build/Debug/generators/libuuidTargets.cmake:25 (message):
     Target name 'LibUUID::LibUUID' already exists.
   ```
   
   I then proceed to build and get `warning: libzip.so.5, needed by` followed 
by undefined from libzip.
   
   Manually adding the following to the CMake fixes the issue:
   ```cmake
   find_package(libzip)
   
   target_link_libraries(TestCelixContainer
       PRIVATE
           libzip::zip
   )
   ```
   
   I don't think this is the intended behavior, is there maybe a way for the 
Celix recipe or helper function to add the missing link?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@celix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to