From 8b85c9719057c521287585eb7094862e4447c61f Mon Sep 17 00:00:00 2001 From: Jan Honsbrok Date: Thu, 30 Jun 2022 17:34:56 +0200 Subject: [PATCH] fix undefined symbols errors when building on linux with clang and opensubdiv:shared=True and compiler.libcxx == "libc++" --- recipes/opensubdiv/all/conanfile.py | 2 ++ 1 file changed, 2 insertions(+) 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)