From 9bb8bb6dd3b9e6f8a95071ba032392961aed3096 Mon Sep 17 00:00:00 2001 From: Martin Valgur Date: Thu, 4 Jan 2024 18:12:54 +0200 Subject: [PATCH] azure-storage-cpp: make Apple libs relocatable --- recipes/azure-storage-cpp/all/conanfile.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes/azure-storage-cpp/all/conanfile.py b/recipes/azure-storage-cpp/all/conanfile.py index dd08d3253e9c4..e9f526218cd0e 100644 --- a/recipes/azure-storage-cpp/all/conanfile.py +++ b/recipes/azure-storage-cpp/all/conanfile.py @@ -108,6 +108,10 @@ def generate(self): tc.variables["GETTEXT_LIB_DIR"] = self.dependencies["libgettext"].cpp_info.libdir if not valid_min_cppstd(self, self._minimum_cpp_standard): tc.variables["CMAKE_CXX_STANDARD"] = self._minimum_cpp_standard + # Allow non-cache_variables to be used + tc.cache_variables["CMAKE_POLICY_DEFAULT_CMP0077"] = "NEW" + # Relocatable shared libs on macOS + tc.cache_variables["CMAKE_POLICY_DEFAULT_CMP0042"] = "NEW" tc.generate() deps = CMakeDeps(self)