Commit 34c798a
committed
CMake: set OSX specific variables properly
On OSX 10.10, one gets errors of the type:
[cmake] CMake Error at Modules/Platform/Darwin.cmake:76 (message):
[cmake] CMAKE_OSX_DEPLOYMENT_TARGET is '10.10' but CMAKE_OSX_SYSROOT:
[cmake]
[cmake] ""
[cmake]
[cmake] is not set to a MacOSX SDK with a recognized version. Either set
[cmake] CMAKE_OSX_SYSROOT to a valid SDK or set CMAKE_OSX_DEPLOYMENT_TARGET to
[cmake] empty.
[cmake] Call Stack (most recent call first):
[cmake] Modules/CMakeSystemSpecificInformation.cmake:36 (include)
[cmake] CMakeLists.txt:16 (project)
Unless the CMAKE_OSX_DEPLOYMENT_TARGET is set to empty. We set it to empty by
unsetting the MACOSX_DEPLOYMENT_TARGET environment variable.
Similar problem happens when cmake is used to build other packages. There the
fix is to unset the CMAKE_OSX_DEPLOYMENT_TARGET variable on the command line.1 parent 835f05b commit 34c798a
2 files changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
11 | 19 | | |
12 | 20 | | |
13 | 21 | | |
| |||
0 commit comments