diff --git a/recipes/tinycbor/all/conanfile.py b/recipes/tinycbor/all/conanfile.py index bede5190148f6..8f88ea357c6b1 100644 --- a/recipes/tinycbor/all/conanfile.py +++ b/recipes/tinycbor/all/conanfile.py @@ -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])