Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Fix macOS minimum deployment target - #16412

Merged
1ec5 merged 1 commit into
masterfrom
1ec5-macos-min-deploy-target-16396
Apr 21, 2020
Merged

1ec5 merged 1 commit into
masterfrom
1ec5-macos-min-deploy-target-16396

Conversation

@1ec5

@1ec5 1ec5 commented Apr 18, 2020 •

Copy link
Copy Markdown
Contributor

MACOSX_DEPLOYMENT_TARGET is a CMake environment variable, so it isn’t possible for a CMake file to set the MACOSX_DEPLOYMENT_TARGET Xcode build setting directly. Instead, set the CMAKE_OSX_DEPLOYMENT_TARGET CMake variable, which ultimately sets the MACOSX_DEPLOYMENT_TARGET Xcode build setting.

Unlike in this Stack Overflow answer, I haven’t found it necessary to set it as a cached variable explicitly, so maybe that’s changed since 2015 or somehow works differently in the context of the mbgl build system.

Fixes #16396.

/cc @mapbox/gl-native @mapbox/maps-ios

@1ec5 1ec5 added build macOS Mapbox Maps SDK for macOS crash labels Apr 18, 2020
@1ec5 1ec5 added this to the release-water milestone Apr 18, 2020
@1ec5 1ec5 self-assigned this Apr 18, 2020
@1ec5
1ec5 requested review from jmalanen and tmpsantos April 18, 2020 02:19
@1ec5
1ec5 force-pushed the 1ec5-macos-min-deploy-target-16396 branch from 5ce9fb0 to 9cdca52 Compare April 20, 2020 15:14
@1ec5
1ec5 merged commit af04848 into master Apr 21, 2020
@1ec5
1ec5 deleted the 1ec5-macos-min-deploy-target-16396 branch April 21, 2020 02:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

build crash macOS Mapbox Maps SDK for macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crash on launch on macOS 10.11–10.14

3 participants