Skip to content

Commit

Permalink
explicit cpp_info.requires
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceIm committed Aug 14, 2022
1 parent 0e1c93f commit 0cf3090
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions recipes/sophus/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ def package_info(self):
if not self.options.with_fmt:
self.cpp_info.defines.append("SOPHUS_USE_BASIC_LOGGING=1")

# TODO: remove this block if required_conan_version changed to 1.51.1 or higher
# (see https://github.com/conan-io/conan/pull/11790)
self.cpp_info.requires = ["eigen::eigen"]
if self.options.with_fmt and Version(self.version) >= Version("22.04.1"):
self.cpp_info.requires.append("fmt::fmt")

# TODO: to remove in conan v2 once cmake_find_package* generator removed
self.cpp_info.names["cmake_find_package"] = "Sophus"
self.cpp_info.names["cmake_find_package_multi"] = "Sophus"

0 comments on commit 0cf3090

Please sign in to comment.