Skip to content

Commit

Permalink
corrects generated cmake modules when using cmake_find_package* gener…
Browse files Browse the repository at this point in the history
…ators
  • Loading branch information
tannerbitz committed Oct 22, 2023
1 parent dfe932a commit d60edae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions recipes/ncurses/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,10 @@ def package_info(self):
self.cpp_info.set_property("cmake_file_name", "Curses")
self.cpp_info.set_property("cmake_build_modules", [module_rel_path])

# for conan v1 generators
self.cpp_info.filenames["cmake_find_package"] = "Curses"
self.cpp_info.filenames["cmake_find_package_multi"] = "Curses"

if self._with_tinfo:
self.cpp_info.components["tinfo"].libs = ["tinfo" + self._lib_suffix]
self.cpp_info.components["tinfo"].names["pkg_config"] = "tinfo" + self._lib_suffix
Expand Down

0 comments on commit d60edae

Please sign in to comment.