@@ -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 ,
@@ -59,6 +61,7 @@ class KnowhereConan(ConanFile):
5961 "openssl/*:no_apps" : True ,
6062 "gflags/*:shared" : True ,
6163 "fmt/*:header_only" : False ,
64+ "openblas/*:dynamic_arch" : True ,
6265 "with_faiss_tests" : False ,
6366 "opentelemetry-cpp/*:with_stl" : True ,
6467 "libcurl/*:with_ssl" : False ,
@@ -107,7 +110,7 @@ def config_options(self):
107110 def configure (self ):
108111 if self .options .shared :
109112 self .options .rm_safe ("fPIC" )
110- if self .settings .os in [ "Linux" , "Android" ] and str (self .settings .arch ) in self ._openblas_dynamic_arches :
113+ if self .settings .os == "Linux" and str (self .settings .arch ) in self ._openblas_dynamic_arches :
111114 self .options ["openblas" ].dynamic_arch = True
112115
113116 def requirements (self ):
@@ -136,11 +139,9 @@ def requirements(self):
136139 self .requires ("xxhash/0.8.3#caa6d0af1b951c247922e38fbcebdbe6" )
137140 if self .settings .os == "Linux" :
138141 self .requires ("openblas/0.3.30" )
139- if self .settings .os == "Android" :
140- self .requires ("openblas/0.3.30" )
141142 if not self .options .with_light :
142143 self .requires ("opentelemetry-cpp/1.23.0@milvus/dev#11bc565ec6e82910ae8f7471da756720" )
143- if self .settings .os not in [ "Macos" , "Android" ] :
144+ if self .settings .os != "Macos" :
144145 self .requires ("libunwind/1.8.1#748a981ace010b80163a08867b732e71" )
145146 if self .options .with_ut :
146147 self .requires ("catch2/3.7.1" )
@@ -210,6 +211,7 @@ def generate(self):
210211 tc .variables ["WITH_DISKANN" ] = self .options .with_diskann
211212 tc .variables ["WITH_SVS" ] = self .options .with_svs
212213 tc .variables ["WITH_CARDINAL" ] = self .options .with_cardinal
214+ tc .variables ["CARDINAL_VERSION_FORCE_CHECKOUT" ] = self .options .cardinal_version_force_checkout
213215 tc .variables ["WITH_CUVS" ] = self .options .with_cuvs
214216 tc .variables ["WITH_PROFILER" ] = self .options .with_profiler
215217 tc .variables ["WITH_UT" ] = self .options .with_ut
0 commit comments