Commit 1f3127a
committed
Fix macos broken build due to cmake 4.0 upgrade
Cmake version 4 changes the behaviour of the CMAKE_OSX_SYSROOT variable
so that it doesn't always get set. The build scripts use that variable
to determine which version of the SDK is installed, and will fail if the
variable is unset. The scripts need a different method to read the SDK
version.
'xcrun' is a more reliable way of getting the SDK version. The
--show-sdk-version flag returns the version number itself, and
--show-sdk-path gives a path that was previously in the
CMAKE_OSX_SYSROOT variable. Change the build scripts to use xcrun to
obtain the path.
Signed-off-by: Grant Likely <[email protected]>1 parent 602c338 commit 1f3127a
2 files changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
0 commit comments