This patch adds opportunity to identify cpu target using cpuid, when you use cmake configuration. Then this CPU_ARCH variable can be used for adding options, disabling or enabling tests for given cpu architectures.
Patch with similar feature for make+configure approach -D38182.