Skip to content

Commit

Permalink
fix undefined symbols errors when building on linux with clang and op…
Browse files Browse the repository at this point in the history
…ensubdiv:shared=True and compiler.libcxx == "libc++"
  • Loading branch information
Latios96 committed Jun 30, 2022
1 parent 42a07ce commit 8b85c97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions recipes/opensubdiv/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ def _configure_cmake(self):
cmake.definitions["NO_REGRESSION"] = True
cmake.definitions["NO_TESTS"] = True
cmake.definitions["NO_GLTESTS"] = True
if self.settings.os == "Linux" and self.settings.compiler == "clang" and self.settings.shared and self.settings.compiler.libcxx == "libc++":
cmake.definitions["CMAKE_CXX_FLAGS"] = "-stdlib=libc++"

cmake.configure(source_folder=self._source_subfolder, build_folder=self._build_subfolder)

Expand Down

0 comments on commit 8b85c97

Please sign in to comment.