Skip to content

Commit

Permalink
Handle fPIC correctly
Browse files Browse the repository at this point in the history
[CURA-10475]
  • Loading branch information
jellespijker committed May 19, 2023
1 parent d802b68 commit 2801642
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ def export_sources(self):
copy(self, "*", path.join(self.recipe_folder, "src"), path.join(self.export_sources_folder, "src"))
copy(self, "*", path.join(self.recipe_folder, "include"), path.join(self.export_sources_folder, "include"))

def config_options(self):
if self.settings.os == "Windows":
del self.options.fPIC

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

def layout(self):
cmake_layout(self)
self.cpp.package.libs = ["Arcus"]
Expand Down

0 comments on commit 2801642

Please sign in to comment.