Closed Calandracas606 closed 2 months ago
Fixes build failure when cross compiling.
This should be CMAKE_SYSTEM_PROCESSOR, which will default to CMAKE_HOST_SYSTEM_PROCESSOR when not cross compiling
https://cmake.org/cmake/help/latest/variable/CMAKE_SYSTEM_PROCESSOR.html https://cmake.org/cmake/help/latest/variable/CMAKE_HOST_SYSTEM_PROCESSOR.html
Tested cross compiling to aarch64, armv6l, and armv7l (although its extremely unlikely that 32-bit arm will ever use this library)
Thank you! I'm submitting the change internally. It should make it to github in a couple days.
Merged in https://github.com/ROCm/rocm_smi_lib/commit/38d1275d64f06800f3cf46ce198c4ab0cd6bbf42
Fixes build failure when cross compiling.
This should be CMAKE_SYSTEM_PROCESSOR, which will default to CMAKE_HOST_SYSTEM_PROCESSOR when not cross compiling
https://cmake.org/cmake/help/latest/variable/CMAKE_SYSTEM_PROCESSOR.html https://cmake.org/cmake/help/latest/variable/CMAKE_HOST_SYSTEM_PROCESSOR.html
Tested cross compiling to aarch64, armv6l, and armv7l (although its extremely unlikely that 32-bit arm will ever use this library)