Build ITK for older CPUs


I would like to know what would be the best way to build ITK for different set of CPU instrctions.
I get crash for certain machines that do not have SSE4 or SSE3 CPU instruction.
Is it possible to build multiple dlls corresponding to different set of instructions enabled and control the pick the right dlls from the code?

Any help would be appreciated :slight_smile:

Thank you,

Set these CMAKE variables:

As I understand by this way I turn off the optimizations.
This will cause slower performance.
Am I right?

You can explore what is done with optimization flags in this file: