Skip to content

Commit

Permalink
4.1.1: Disable shared builds on MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
martinvl committed Jul 4, 2022
1 parent 43beeb5 commit e57f350
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions recipes/gtsam/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 self.version >= tools.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)
Expand Down

0 comments on commit e57f350

Please sign in to comment.