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

Fix builds on FreeBSD #652

Merged
merged 1 commit into from
Aug 14, 2021
Merged

Fix builds on FreeBSD #652

merged 1 commit into from
Aug 14, 2021

Conversation

xanderio
Copy link
Contributor

Without this patch the cmake config assume that every UNIX system that
is not APPLE is automatically a linux system. This however causes
problems on FreeBSD and properly on other BSD systems.

We now explicitly check if the CMAKE_SYSTEM_NAME is set to Linux.

Without this patch the cmake config assume that every UNIX system that
is not APPLE is automatically a linux system. This however causes
problems on FreeBSD and properly on other BSD systems.

We now explicitly check if the CMAKE_SYSTEM_NAME is set to Linux.
Copy link
Contributor

@smortex smortex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really understand the previous logic, but as it explicitly exclude Apple and these spi/i2c drivers are Linux-only this new code makes more sense.

@smortex smortex merged commit 6d0e8a5 into nfc-tools:master Aug 14, 2021
@xanderio xanderio deleted the fix-freebsd branch August 14, 2021 19:39
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.

None yet

2 participants