Skip to content

Commit

Permalink
Shared dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jarlela committed May 28, 2024
1 parent 8cdcd70 commit af09d5b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,18 @@ def config_options(self):
def configure(self):
if self.options.shared:
self.options.rm_safe("fPIC")
self.options["*"].shared = self.options.shared

def layout(self):
cmake_layout(self, src_folder=".")

def requirements(self):
self.requires("boost/[>=1.78.0 <1.82.0]", transitive_headers=True)
self.requires("openssl/[>=1.1 <4]")
if self.options.shared:
print("Openssl transitive libs")
self.requires("openssl/[>=1.1 <4]", transitive_libs=True)
else:
self.requires("openssl/[>=1.1 <4]")

def validate(self):
if self.settings.compiler.cppstd:
Expand Down

0 comments on commit af09d5b

Please sign in to comment.