mirror of
https://github.com/conan-io/conan-center-index.git
synced 2025-08-16 11:31:19 +00:00
zlib: Add MacOS deployment target (#2508)
This commit is contained in:
@@ -65,6 +65,10 @@ class ZlibConan(ConanFile):
|
||||
else:
|
||||
make_target = "libz.a"
|
||||
|
||||
if tools.is_apple_os(self.settings.os) and self.settings.get_safe("os.version"):
|
||||
target = tools.apple_deployment_target_flag(self.settings.os, self.settings.os.version)
|
||||
env_build.flags.append(target)
|
||||
|
||||
env = {}
|
||||
if "clang" in str(self.settings.compiler) and tools.get_env("CC") is None and tools.get_env("CXX") is None:
|
||||
env = {"CC": "clang", "CXX": "clang++"}
|
||||
|
Reference in New Issue
Block a user