Skip to content

Commit

Permalink
optimize conanfile (#965)
Browse files Browse the repository at this point in the history
Signed-off-by: yusheng.ma <[email protected]>
  • Loading branch information
Presburger authored Dec 2, 2024
1 parent 75538c5 commit 95bce9a
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,16 @@ class KnowhereConan(ConanFile):
"with_profiler": False,
"with_ut": False,
"glog:with_gflags": True,
"gtest:build_gmock": False,
"prometheus-cpp:with_pull": False,
"with_benchmark": False,
"with_coverage": False,
"boost:without_locale": False,
"boost:without_test": True,
"boost:without_stacktrace": True,
"fmt:header_only": True,
"with_faiss_tests": False,
"libcurl:with_ssl": False,
"with_light": False,
}

Expand Down Expand Up @@ -80,26 +84,31 @@ def _minimum_compilers_version(self):
def config_options(self):
if self.settings.os == "Windows":
self.options.rm_safe("fPIC")
if self.options.with_light:
self.options["boost"].without_locale = True

def configure(self):
if self.options.shared:
self.options.rm_safe("fPIC")

def requirements(self):
self.requires("boost/1.83.0")
self.requires("glog/0.4.0")
self.requires("glog/0.6.0")
self.requires("nlohmann_json/3.11.2")
self.requires("openssl/1.1.1t")
self.requires("prometheus-cpp/1.1.0")
self.requires("zlib/1.2.12")
self.requires("double-conversion/3.2.1")
self.requires("xz_utils/5.2.5")
self.requires("protobuf/3.21.4")
self.requires("fmt/9.1.0")
self.requires("folly/2023.10.30.08@milvus/dev")
self.requires("folly/2023.10.30.09@milvus/dev")
self.requires("libcurl/8.2.1")
if self.settings.os == "Android":
self.requires("openblas/0.3.27")
if not self.options.with_light:
self.requires("opentelemetry-cpp/1.8.1.1@milvus/dev")
if self.settings.os != "Macos":
if self.settings.os not in ["Macos", "Android"]:
self.requires("libunwind/1.7.2")
if self.options.with_ut:
self.requires("catch2/3.3.1")
Expand Down

0 comments on commit 95bce9a

Please sign in to comment.