Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to set minimum supported macOS version in cmake? #2406

Open
Kylmakalle opened this issue Apr 17, 2023 · 0 comments
Open

Unable to set minimum supported macOS version in cmake? #2406

Kylmakalle opened this issue Apr 17, 2023 · 0 comments

Comments

@Kylmakalle
Copy link
Contributor

Kylmakalle commented Apr 17, 2023

Hi. I don't see a clear option in cmake files to set -mmacos-version-min. It's supported for other Apple platforms

As for now, clang will decide about the version on it's own. For Xcode 14.2 (AppleClang 14.0.0.14000029) and macOS 12.6.5 build machine I'm getting a TDLib that's intended to be used on MacOS 12.6+

$ otool -l lib/libtdjson_static.a | grep -A5 -B1 -m1 "LC_BUILD_VERSION"
Load command 1
      cmd LC_BUILD_VERSION
  cmdsize 24
 platform 1
    minos 12.6
      sdk 13.1
   ntools 0

I've described how the parameter can be changed with custom build script for other Apple platforms here: #2405

@Kylmakalle Kylmakalle changed the title Unable to set minimum supported macOS version in cmake Unable to set minimum supported macOS version in cmake? Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant