Commit 93de007
authored
setup.py: honor CMAKE_GENERATOR_PLATFORM for the Windows -A flag (#7019)
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 f314899 commit 93de007
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
191 | 194 | | |
192 | 195 | | |
193 | 196 | | |
| |||
0 commit comments