Skip to content

Added rudimentary platform detection to CMakeLists.txt#151

Open
spillner wants to merge 2 commits intodjyt:masterfrom
spillner:cmake-platform-detect
Open

Added rudimentary platform detection to CMakeLists.txt#151
spillner wants to merge 2 commits intodjyt:masterfrom
spillner:cmake-platform-detect

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