2
2
3
3
from conan import ConanFile
4
4
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
6
6
from conan .tools .build import can_run
7
7
8
8
@@ -64,8 +64,6 @@ class AlpaqaRecipe(ConanFile):
64
64
"README.md" ,
65
65
)
66
66
67
- generators = ("CMakeDeps" ,)
68
-
69
67
def requirements (self ):
70
68
self .requires ("eigen/3.4.0" , transitive_headers = True )
71
69
self .test_requires ("gtest/1.11.0" )
@@ -76,7 +74,7 @@ def requirements(self):
76
74
if self .options .with_python :
77
75
self .requires ("pybind11/2.11.1" )
78
76
if self .options .with_matlab :
79
- self .requires ("utfcpp/4.0.1 " )
77
+ self .requires ("utfcpp/4.0.4 " )
80
78
if self .options .with_blas :
81
79
self .requires ("openblas/0.3.24" )
82
80
@@ -96,6 +94,9 @@ def layout(self):
96
94
cmake_layout (self )
97
95
98
96
def generate (self ):
97
+ deps = CMakeDeps (self )
98
+ deps .set_property ("utfcpp" , "cmake_target_name" , "utf8cpp::utf8cpp" )
99
+ deps .generate ()
99
100
tc = CMakeToolchain (self )
100
101
tc .variables ["ALPAQA_WITH_EXAMPLES" ] = False
101
102
for k in self .bool_alpaqa_options :
0 commit comments