Skip to content

Commit

Permalink
[armadillo] Fix cmake target names to match upstream
Browse files Browse the repository at this point in the history
These target names are defined by the public CMake module published by
Kitware at https://cmake.org/cmake/help/latest/module/FindArmadillo.html
  • Loading branch information
samuel-emrys committed Dec 5, 2023
1 parent 3d67c12 commit 6f9c002
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion recipes/armadillo/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from conan.errors import ConanInvalidConfiguration
import os

required_conan_version = ">=1.53.0"
required_conan_version = ">=1.55.0"


class ArmadilloConan(ConanFile):
Expand Down Expand Up @@ -275,6 +275,8 @@ def package(self):
def package_info(self):
self.cpp_info.libs = ["armadillo"]
self.cpp_info.set_property("pkg_config_name", "armadillo")
self.cpp_info.set_property("cmake_file_name", "Armadillo")
self.cpp_info.set_property("cmake_target_name", "Armadillo::Armadillo")

if self.options.get_safe("use_extern_rng"):
self.cpp_info.defines.append("ARMA_USE_EXTERN_RNG")
Expand Down

0 comments on commit 6f9c002

Please sign in to comment.