Commit b06f40f
authored
cmake: emit warning when failing to cross-compile (#1438)
cmake requires setting CMAKE_SYSTEM_NAME to detect a cross-compile of
any form (including same-os but different-processor). This means that,
if an OS is not listed under _TARGET_OS_PARAMS, cross-compilation can
never work on that platform; it would have silently done a native
compile.
This change makes it emit a warning in this case, and adds macos to the
list so xcompiles work on macos.1 parent a3cef63 commit b06f40f
1 file changed
+16
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| |||
124 | 127 | | |
125 | 128 | | |
126 | 129 | | |
127 | | - | |
128 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
129 | 143 | | |
130 | 144 | | |
131 | 145 | | |
| |||
0 commit comments