Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rocksdb #3

Merged
merged 2 commits into from
Dec 26, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion recipes/rocksdb/all/conanfile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from conans import ConanFile, CMake, tools
from conans.tools import Version
from conans.errors import ConanInvalidConfiguration
import os


Expand All @@ -24,7 +26,7 @@ class RocksDB(ConanFile):
}
default_options = {
"shared": False,
"fPIC": False,
"fPIC": True,
"lite": False,
"with_snappy": False,
"with_lz4": False,
Expand All @@ -48,6 +50,12 @@ def config_options(self):
if self.settings.os == "Windows":
del self.options.fPIC

def configure(self):
if self.settings.os == "Windows" and \
self.settings.compiler == "Visual Studio" and \
Version(self.settings.compiler.version) < "15":
raise ConanInvalidConfiguration("Rocksdb requires Visual Studio 15 or later.")

def source(self):
tools.get(**self.conan_data["sources"][self.version])
extracted_dir = "rocksdb-" + self.version
Expand Down