Skip to content

Commit 15b8107

Browse files
committedMay 6, 2024
[Conan] Change utf8cpp target name
1 parent f275981 commit 15b8107

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
 

‎conanfile.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from conan import ConanFile
44
from conan.errors import ConanInvalidConfiguration
5-
from conan.tools.cmake import CMakeToolchain, CMake, cmake_layout
5+
from conan.tools.cmake import CMakeDeps, CMakeToolchain, CMake, cmake_layout
66
from conan.tools.build import can_run
77

88

@@ -64,8 +64,6 @@ class AlpaqaRecipe(ConanFile):
6464
"README.md",
6565
)
6666

67-
generators = ("CMakeDeps",)
68-
6967
def requirements(self):
7068
self.requires("eigen/3.4.0", transitive_headers=True)
7169
self.test_requires("gtest/1.11.0")
@@ -76,7 +74,7 @@ def requirements(self):
7674
if self.options.with_python:
7775
self.requires("pybind11/2.11.1")
7876
if self.options.with_matlab:
79-
self.requires("utfcpp/4.0.1")
77+
self.requires("utfcpp/4.0.4")
8078
if self.options.with_blas:
8179
self.requires("openblas/0.3.24")
8280

@@ -96,6 +94,9 @@ def layout(self):
9694
cmake_layout(self)
9795

9896
def generate(self):
97+
deps = CMakeDeps(self)
98+
deps.set_property("utfcpp", "cmake_target_name", "utf8cpp::utf8cpp")
99+
deps.generate()
99100
tc = CMakeToolchain(self)
100101
tc.variables["ALPAQA_WITH_EXAMPLES"] = False
101102
for k in self.bool_alpaqa_options:

0 commit comments

Comments
 (0)
Please sign in to comment.