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

[CMake] Further Apple M1 path improvements #2589

Merged
merged 2 commits into from
Oct 30, 2021

Conversation

Fuzzbawls
Copy link
Collaborator

A couple more updates to CMake builds on Apple Silicon (M1) based systems:

  • The BerkeleyDB_ROOT_DIR top-level variable is expected to be only a single path, and not a list, so use build host processor logic to conditionally set it.
  • The Qt search paths in order to find the moc binary weren't including the apple silicon based homebrew path, which was resulting in a failure to find the program.

Since the ability to test these changes by others on native M1 hardware is limited, and CI doesn't yet give us the opportunity to test in a M1 CI environment, it would suffice to simply verify that non-M1 builds are unaffected by these changes.

The `BerkeleyDB_ROOT_DIR` CMake variable only expects a single path instead of a list when no cache exists, so use the build host CPU arch to determine the correct path to pass to the build system.

Apple Silicon homebrew path is (by default) `/opt/homebrew`, whereas Intel hombrew path is `/usr/local`
@Fuzzbawls Fuzzbawls added this to the 5.4.0 milestone Oct 8, 2021
@Fuzzbawls Fuzzbawls self-assigned this Oct 8, 2021
Copy link

@furszy furszy left a comment

Choose a reason for hiding this comment

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

Confirmed that cmake continues working fine on macOS intel chip.

utACK 4c0123f

Copy link

@random-zebra random-zebra left a comment

Choose a reason for hiding this comment

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

utACK 4c0123f

@furszy furszy merged commit c2ac4e0 into PIVX-Project:master Oct 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants