-
Notifications
You must be signed in to change notification settings - Fork 30
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
Replace exec_program with execute_process #402
Conversation
Signed-off-by: Addisu Z. Taddese <[email protected]>
Out of curiosity, are we using the CheckSSE results anywhere? Seems like it may be unnecessary in modern versions of CMake unless we are doing something really wild and crazy with intrinsics somewhere. |
We are setting flags based on the results here: Are you saying those flags would be set automatically by modern versions of cmake? |
I thought that modern cmake versions actually included this, but it looks like the answer is even more complicated than that. For source builds, it's probably fine what we are doing, but packaging is a different story. It looks like each platform has a baseline specification, and it's up to us to handle any divergence from that baseline (for packaging). One of the recommended approaches is via: https://github.com/simd-everywhere/simde Basically, there is a chance that we build with something like SSE4 turned on, but the deb won't work if the user doesn't have an SSE4 compatible processor. There is more information about what the baselines are here for Ubuntu: https://ubuntu.com/blog/optimising-ubuntu-performance-on-amd64-architecture |
All that to say, I don't think that has any impact on this PR... carry on. |
Signed-off-by: Addisu Z. Taddese <[email protected]> Co-authored-by: Steve Peters <[email protected]>
Signed-off-by: Addisu Z. Taddese <[email protected]> Co-authored-by: Steve Peters <[email protected]>
Signed-off-by: Addisu Z. Taddese <[email protected]> Co-authored-by: Steve Peters <[email protected]>
* Replace exec_program with execute_process (#402) * Remove additional exec_program Signed-off-by: Addisu Z. Taddese <[email protected]> --------- Signed-off-by: Addisu Z. Taddese <[email protected]> Co-authored-by: Steve Peters <[email protected]>
🦟 Bug fix
Summary
In cmake 3.28, using
exec_program
causes a warning. The command has been deprecated since 3.0 andexecute_process
is the recommended replacement.The changes were not trivial, so I thought we can merge in
main
, test it across all the libraries and then backport togz-cmake3
.Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸