@@ -28,6 +28,7 @@ class KnowhereConan(ConanFile):
2828 "with_diskann" : [True , False ],
2929 "with_svs" : [True , False ],
3030 "with_cardinal" : [True , False ],
31+ "cardinal_version_force_checkout" : [True , False ],
3132 "with_profiler" : [True , False ],
3233 "with_ut" : [True , False ],
3334 "with_benchmark" : [True , False ],
@@ -44,6 +45,7 @@ class KnowhereConan(ConanFile):
4445 "with_diskann" : False ,
4546 "with_svs" : False ,
4647 "with_cardinal" : False ,
48+ "cardinal_version_force_checkout" : False ,
4749 "with_profiler" : False ,
4850 "with_ut" : False ,
4951 "glog/*:shared" : True ,
@@ -107,7 +109,7 @@ def config_options(self):
107109 def configure (self ):
108110 if self .options .shared :
109111 self .options .rm_safe ("fPIC" )
110- if self .settings .os in [ "Linux" , "Android" ] and str (self .settings .arch ) in self ._openblas_dynamic_arches :
112+ if self .settings .os == "Linux" and str (self .settings .arch ) in self ._openblas_dynamic_arches :
111113 self .options ["openblas" ].dynamic_arch = True
112114
113115 def requirements (self ):
@@ -136,11 +138,9 @@ def requirements(self):
136138 self .requires ("xxhash/0.8.3#caa6d0af1b951c247922e38fbcebdbe6" )
137139 if self .settings .os == "Linux" :
138140 self .requires ("openblas/0.3.30" )
139- if self .settings .os == "Android" :
140- self .requires ("openblas/0.3.30" )
141141 if not self .options .with_light :
142142 self .requires ("opentelemetry-cpp/1.23.0@milvus/dev#11bc565ec6e82910ae8f7471da756720" )
143- if self .settings .os not in [ "Macos" , "Android" ] :
143+ if self .settings .os != "Macos" :
144144 self .requires ("libunwind/1.8.1#748a981ace010b80163a08867b732e71" )
145145 if self .options .with_ut :
146146 self .requires ("catch2/3.7.1" )
@@ -210,6 +210,7 @@ def generate(self):
210210 tc .variables ["WITH_DISKANN" ] = self .options .with_diskann
211211 tc .variables ["WITH_SVS" ] = self .options .with_svs
212212 tc .variables ["WITH_CARDINAL" ] = self .options .with_cardinal
213+ tc .variables ["CARDINAL_VERSION_FORCE_CHECKOUT" ] = self .options .cardinal_version_force_checkout
213214 tc .variables ["WITH_CUVS" ] = self .options .with_cuvs
214215 tc .variables ["WITH_PROFILER" ] = self .options .with_profiler
215216 tc .variables ["WITH_UT" ] = self .options .with_ut
0 commit comments