Skip to content

Commit

Permalink
Merge pull request #3 from uilianries/tinycbor
Browse files Browse the repository at this point in the history
Accept shared only on linux for tinycbor
  • Loading branch information
ericriff authored Dec 23, 2019
2 parents fdc0053 + eaa5f46 commit 3f46109
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions recipes/tinycbor/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ def config_options(self):
def configure(self):
del self.settings.compiler.libcxx
del self.settings.compiler.cppstd
if self.settings.os == "Windows":
if self.options.shared:
raise ConanInvalidConfiguration("Shared library only supported on Unix systems")
if self.settings.os != "Linux" and self.options.shared:
raise ConanInvalidConfiguration("Shared library only supported on Linux platform")

def source(self):
tools.get(**self.conan_data["sources"][self.version])
Expand Down

0 comments on commit 3f46109

Please sign in to comment.