Snaipe / Mimick

A KISS, cross-platform C mocking library
MIT License
152 stars 43 forks source link

Add armv7l as target arch for Raspberry Pi #15

Closed goekce closed 3 years ago

goekce commented 4 years ago

CMAKE_SYSTEM_PROCESSOR is the same as CMAKE_HOST_SYSTEM_PROCESSOR when building for the host system. CMAKE_HOST_SYSTEM_PROCESSOR is uname -m on Linux. On RPi 3 uname -m = armv7l.

https://cmake.org/cmake/help/v3.18/variable/CMAKE_SYSTEM_PROCESSOR.html

goekce commented 4 years ago

Probably https://github.com/Snaipe/Mimick/issues/17#issue-733092525 is a better workaround. But I will leave my PR a while here. @Snaipe feel free to delete this PR if it is too naive. also related to https://github.com/ros2/mimick_vendor/issues/11

goekce commented 4 years ago

a better PR: https://github.com/ros2/Mimick/pull/14

Update: https://github.com/ros2/Mimick/pull/16 seems better

goekce commented 3 years ago

No feedback, so I will close this PR.

I noticed that ros2/mimick is many commits ahead of this repo. There is already a PR regarding armv7l support: https://github.com/ros2/Mimick/pull/16