Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#20068) Recipe/20067 armadillo fix cmake targets
* [armadillo] Fix cmake target names to match upstream These target names are defined by the public CMake module published by Kitware at https://cmake.org/cmake/help/latest/module/FindArmadillo.html * [armadillo] Add legacy CMake variables Add the following legacy CMake variables defined by the upstream FindArmadillo.cmake module published by Kitware - https://cmake.org/cmake/help/latest/module/FindArmadillo.html: * ARMADILLO_FOUND * ARMADILLO_INCLUDE_DIRS * ARMADILLO_LIBRARIES * ARMADILLO_VERSION_MAJOR * ARMADILLO_VERSION_MINOR * ARMADILLO_VERSION_PATCH * ARMADILLO_VERSION_STRING * ARMADILLO_VERSION_NAME * [armadillo] Remove debug messages * [armadillo] Update find_package to use new Armadillo target * [armadillo] Add conan 1.x compatibility for legacy cmake variables * [armadillo] Add alias targets for wide compatibility 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. * [armadillo] Make primary CMake target armadillo::armadillo and reduce aliases * Make armadillo::armadillo the primary CMake target because the upstream CMake module doesn't enforce this behaviour, and the policy of CCI is to use packagename::packagename when no target is enforced * Make Armadillo::Armadillo and armadillo CMake target aliases as these are common in the wild, and this will facilitate conan package compatibility with existing build scripts. * Remove Armadillo::armadillo and Armadillo as CMake targets as these have not been observed in the wild. * Revert "[armadillo] Make primary CMake target armadillo::armadillo and reduce aliases" This reverts commit 64016f5. * [armadillo] Remove unused cmake target aliases * Remove Armadillo::armadillo and Armadillo as CMake targets as these have not been observed in the wild.
- Loading branch information