-
Notifications
You must be signed in to change notification settings - Fork 138
Fix Issue #1902: Explicitly set CMAKE_OSX_DEPLOYMENT_TARGET to 15.0 #1903
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -135,6 +135,7 @@ if ${generateMakefiles}; then | |||||
| echo "generate Makefiles start" | ||||||
| mkdir -p ${buildpath}/tvos_build_file/${platform}-${arch} && cd ${buildpath}/tvos_build_file/${platform}-${arch} | ||||||
| cmake -DCMAKE_SYSTEM_NAME=tvOS \ | ||||||
| -DCMAKE_OSX_DEPLOYMENT_TARGET=15.0 \ | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hardcoding the deployment target to
Suggested change
|
||||||
| -DCMAKE_OSX_ARCHITECTURES=${arch} \ | ||||||
| ${sysroot_arg} \ | ||||||
| -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=${buildpath}/${frameworkspath}/${platform}-${arch} \ | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -494,6 +494,7 @@ def cmake_configure(source_path, build_path, toolchain, archive_output_path, | |||||
| cmd.append('-DCMAKE_ARCHIVE_OUTPUT_DIRECTORY={0}'.format(archive_output_path)) | ||||||
| cmd.append('-DCMAKE_LIBRARY_OUTPUT_DIRECTORY={0}'.format(archive_output_path)) | ||||||
| cmd.append('-DCMAKE_RUNTIME_OUTPUT_DIRECTORY={0}'.format(archive_output_path)) | ||||||
| cmd.append('-DCMAKE_OSX_DEPLOYMENT_TARGET=15.0') | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hardcoding the deployment target to
Suggested change
|
||||||
| if architecture: | ||||||
| cmd.append('-DCMAKE_OSX_ARCHITECTURES={0}'.format(architecture)) | ||||||
| utils.run_command(cmd) | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hardcoding the deployment target to
15.0prevents developers from overriding it for custom builds (e.g., targeting a different iOS version). Allowing it to be overridden via an environment variable provides better flexibility.