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

Only enable SSE on non ARM systems #1042

Merged
merged 1 commit into from
Aug 14, 2023

Conversation

autoantwort
Copy link
Contributor

Fixes #921

@cdcseacave cdcseacave changed the base branch from master to develop August 11, 2023 06:27
@cdcseacave cdcseacave changed the base branch from develop to master August 11, 2023 06:27
@cdcseacave
Copy link
Owner

thank you, pls make it pointing to develop

@autoantwort autoantwort changed the base branch from master to develop August 11, 2023 09:09
@autoantwort autoantwort marked this pull request as ready for review August 11, 2023 11:26
@cdcseacave cdcseacave merged commit a84072d into cdcseacave:develop Aug 14, 2023
Comment on lines +53 to +54
cmake_policy(SET CMP0127 NEW)
cmake_dependent_option(OpenMVS_USE_SSE "Enable SSE optimizations" ON "NOT CMAKE_SYSTEM_PROCESSOR MATCHES \"^(arm|ARM|aarch64|AARCH64).\"" OFF)
Copy link

Choose a reason for hiding this comment

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

Doesn't this implicitly raise the minimum required version to CMake 3.22?
Other policies are handled with guards in lines 7 to 15.
And the feature enabled by CMP0127 simples doesn't exist before CMake 3.22,
https://cmake.org/cmake/help/latest/policy/CMP0127.html

Copy link
Owner

Choose a reason for hiding this comment

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

thx for spotting this; can you modify the if to not require the new policy? if not lets update cmake version

Copy link

Choose a reason for hiding this comment

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

It should be enough to put the condition result into a variable, and use this variable value instead of the original ON.

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.

Error building in MacOS
3 participants