-
Notifications
You must be signed in to change notification settings - Fork 378
Open
Description
When reading the Components section in package_info, I can find the following example code:
def package_info(self):
self.cpp_info.components["crypto"].set_property("cmake_file_name", "Crypto")
self.cpp_info.components["crypto"].libs = ["libcrypto"]
self.cpp_info.components["crypto"].defines = ["DEFINE_CRYPTO=1"]
self.cpp_info.components["crypto"].requires = ["zlib::zlib"] # Depends on all components in zlib package
self.cpp_info.components["ssl"].set_property("cmake_file_name", "SSL")
self.cpp_info.components["ssl"].includedirs = ["include/headers_ssl"]
self.cpp_info.components["ssl"].libs = ["libssl"]Reference: https://docs.conan.io/2/reference/conanfile/methods/package_info.html#components
However, it's not possible to generate two separate CMake config files using CMakeDeps, neither CMakeConfigDeps, instead, it will generate <package_name>Config.cmake
Metadata
Metadata
Assignees
Labels
No labels