Skip to content

Commit

Permalink
Merge pull request #3 from uilianries/rocksdb
Browse files Browse the repository at this point in the history
Rocksdb
  • Loading branch information
gocarlos authored Dec 26, 2019
2 parents d3fb742 + ae454cd commit 6ed9365
Showing 1 changed file with 9 additions and 1 deletion.
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

0 comments on commit 6ed9365

Please sign in to comment.