Skip to content

Commit

Permalink
[armadillo] Add alias targets for wide compatibility
Browse files Browse the repository at this point in the history
Add alias targets for wide compatibility with existing CMake scripts.
The upstream CMake find module doesn't define what the name of the
targets should be, so this provides coverage for the wide usage of
different possible combinations found in the wild.

This is based on inspection of target_link_library patterns for
armadillo usage found on github.
  • Loading branch information
samuel-emrys committed Jan 9, 2024
1 parent 39b309f commit 6d83aa4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions recipes/armadillo/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ def package_info(self):
self.cpp_info.set_property("cmake_find_mode", "both")
self.cpp_info.set_property("cmake_file_name", "Armadillo")
self.cpp_info.set_property("cmake_target_name", "Armadillo::Armadillo")
self.cpp_info.set_property("cmake_target_aliases", ["Armadillo", "armadillo", "armadillo::armadillo", "Armadillo::armadillo"])
self.cpp_info.set_property("cmake_build_modules", [self._module_vars_rel_path])

# Remove when cmake_find_package and pkg_config generators are no
Expand Down

0 comments on commit 6d83aa4

Please sign in to comment.