diff --git a/recipes/opensubdiv/all/conanfile.py b/recipes/opensubdiv/all/conanfile.py index 175b88fc8dd2d1..34e54cb00cc18b 100644 --- a/recipes/opensubdiv/all/conanfile.py +++ b/recipes/opensubdiv/all/conanfile.py @@ -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)