Commit 91965e3
authored
setup.py: honor CMAKE_GENERATOR_PLATFORM for the Windows -A flag (#592)
The Windows build hardcoded the Visual Studio target architecture to x64
for any 64-bit interpreter (`if sys.maxsize > 2**32: -A x64`). On
win-arm64 the interpreter is 64-bit but the architecture is ARM, so this
mis-targeted the build and find_package(Python) then failed. Honor an
explicit CMAKE_GENERATOR_PLATFORM (e.g. "ARM64") from the environment,
falling back to the previous behavior otherwise.
Same as openPMD/openPMD-api#19101 parent 773d28e commit 91965e3
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
160 | 163 | | |
161 | 164 | | |
162 | 165 | | |
| |||
0 commit comments