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

COMP: Pass optimization flags to ITK and ANTS-build #1445

Merged
merged 1 commit into from
Nov 8, 2022

Conversation

cookpa
Copy link
Member

@cookpa cookpa commented Nov 4, 2022

SuperBuild_ANTS_C[XX]_OPTIMIZATION_FLAGS were defined as options, but were not being used. The project optimization flags were reset to their defaults by the inclusion of ITKSetStandardCompilerFlags.cmake. Now pass these values to the subprojects so consistent optimization flags are used for ITK and ANTs. I could not find an equivalent setting for VTK.

SuperBuild_ANTS_C[XX]_OPTIMIZATION_FLAGS were defined as options, but
were not being used. The project optimization flags were reset to their
defaults by the inclusion of ITKSetStandardCompilerFlags.cmake. Now pass
these values to the subprojects so consistent optimization flags are used
for ITK and ANTs. I could not find an equivalent setting for VTK.
@cookpa
Copy link
Member Author

cookpa commented Nov 4, 2022

OK VTK looks like it gets the right flags passed down, it doesn't call anything like ITKSetStandardCompilerFlags.cmake as far as I can tell.

@ntustison
Copy link
Member

Thanks @cookpa

@cookpa cookpa merged commit 066bebc into master Nov 8, 2022
@cookpa cookpa deleted the setOptimizationFlags branch January 9, 2023 19:22
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.

Optimization flags for compiling Superbuild ITK and ANTs
2 participants