You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a package which generates a set of libraries and a set of interface targets, which don't have a real library behind them. See for example this target, whic just adss compiler and liner switches
I dont believe conan can currently create them?
Also those libraries have separate C/LD FLAGS, which again conan is not able to provide.
Note that the package would provide a full config for CMake, so all that would be needed to use those would be adding "usr/lib/cmake/xenomai" to the find_package path. (Also relevant: #4967)
include(${CMAKE_BINARY_DIR}/conan_paths.cmake)
# not quite happy with conan not creating these...set(Xenomai_DIR "${CONAN_XENOMAI3_ROOT}/usr/lib/cmake/xenomai")
find_package(Xenomai 3.0 REQUIRED)
Talking about builtin generators that create CMake targets (cmake, cmake_multi, cmake_find_package and cmake_find_package_multi): Conan creates one target per library defined in cpp_info.libs (and one more target to group them all), all the information defined in the cpp_info object is applied to each one and every target. So that is something not doable in a single package (we would need the components feature to allow something like that: #5408)
Creating your own generator: you can access the information in the cpp_info object and interpret it according to your needs. I highly discourage this approach as your package won't work with other generators and it won't be reusable by the community.
Package your own FindXenomai.cmake (or the config equivalent) and consumers will use it. At this moment we have good reasons to forbid .cmake files in conan-center-index and use the Conan generated ones, but for your own library, if needed, this is likely the way to go right now.
This ticket was using the old generators (legacy in 1.X, removed in 2.0), that have been superseded some time ago by new ones. Closing as outdated, please check the new ones and don't hesitate to open new tickets as necessary for any further question.
I have a package which generates a set of libraries and a set of interface targets, which don't have a real library behind them. See for example this target, whic just adss compiler and liner switches
I dont believe conan can currently create them?
Also those libraries have separate C/LD FLAGS, which again conan is not able to provide.
Note that the package would provide a full config for CMake, so all that would be needed to use those would be adding "usr/lib/cmake/xenomai" to the find_package path. (Also relevant: #4967)
The text was updated successfully, but these errors were encountered: