Skip to content

Commit

Permalink
g2o: disable shared Windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Jan 15, 2024
1 parent d3a5839 commit c0aefdd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions recipes/g2o/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ def validate(self):
f"{self.ref} requires C++{self._min_cppstd}, which your compiler does not support."
)

if self.settings.os == "Windows" and self.options.shared:
# Build fails with "unresolved external symbol "public: __cdecl g2o::internal::LoggerInterface::LoggerInterface(void)"
raise ConanInvalidConfiguration("g2o does not currently support shared libraries on Windows")

def source(self):
get(self, **self.conan_data["sources"][self.version], strip_root=True)

Expand Down

0 comments on commit c0aefdd

Please sign in to comment.