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

Update conanfile.py #1648

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
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
17 changes: 2 additions & 15 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class Clio(ConanFile):
settings = 'os', 'compiler', 'build_type', 'arch'
options = {
'static': [True, False], # static linkage
'fPIC': [True, False], # unused?
'verbose': [True, False],
'tests': [True, False], # build unit tests; create `clio_tests` binary
'integration_tests': [True, False], # build integration tests; create `clio_integration_tests` binary
Expand All @@ -21,20 +20,8 @@ class Clio(ConanFile):
'lint': [True, False], # run clang-tidy checks during compilation
}

requires = [
mst-rajatmishra marked this conversation as resolved.
Show resolved Hide resolved
'boost/1.82.0',
'cassandra-cpp-driver/2.17.0',
'fmt/10.1.1',
'protobuf/3.21.9',
'grpc/1.50.1',
'openssl/1.1.1u',
'xrpl/2.3.0-b1',
'libbacktrace/cci.20210118'
]

default_options = {
'static': False,
'fPIC': True,
'verbose': False,
'tests': False,
'integration_tests': False,
Expand All @@ -57,6 +44,7 @@ class Clio(ConanFile):
'protobuf/*:with_zlib': True,
'snappy/*:shared': False,
'gtest/*:no_main': True,
'benchmark/*:header_only': True, # Set options for benchmark if applicable
}

exports_sources = (
Expand All @@ -75,11 +63,10 @@ def configure(self):

def layout(self):
cmake_layout(self)
# Fix this setting to follow the default introduced in Conan 1.48
# to align with our build instructions.
self.folders.generators = 'build/generators'

generators = 'CMakeDeps'

def generate(self):
tc = CMakeToolchain(self)
tc.variables['verbose'] = self.options.verbose
Expand Down