From b8fd744c5e6791921e0c809d3b788c0692b479e8 Mon Sep 17 00:00:00 2001 From: Martin Vonheim Larsen Date: Mon, 4 Jul 2022 16:55:53 +0200 Subject: [PATCH] 4.1.1: Disable shared builds on MSVC --- recipes/gtsam/all/conanfile.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes/gtsam/all/conanfile.py b/recipes/gtsam/all/conanfile.py index 5ec6b807c74ad..d071ea8afc0f8 100644 --- a/recipes/gtsam/all/conanfile.py +++ b/recipes/gtsam/all/conanfile.py @@ -121,6 +121,10 @@ def validate(self): if self.settings.compiler == "Visual Studio" and tools.Version(self.settings.compiler.version) < 15: raise ConanInvalidConfiguration ("GTSAM requires MSVC >= 15") + if self.settings.compiler == "Visual Studio" and tools.Version(self.version) >= '4.1' \ + and self.options.shared: + raise ConanInvalidConfiguration("GTSAM does not support shared builds on MSVC") + def source(self): tools.get(**self.conan_data["sources"][self.version], destination=self._source_subfolder, strip_root=True)