Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added rudimentary platform detection to CMakeLists.txt #151

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

spillner
Copy link

Changed this so non-Windows users don't need to manually edit CMakeLists or pass a -DTARGET= every time. The RPi detection (just looking for a GCC-style -march=arm in CMAKE_CXX_FLAGS) is pretty rudimentary (not necessarily what users on other ARM platforms are looking for, and won't detect cross-compilation on non-GCC toolchains), but at least it (a) provides a warning message to show the inferred platform, and (b) doesn't create any more inconvenience than the old "assume Windows 64" behavior did.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant