Use SetTargetCPU.cmake in directory external/aocommon/CMake to avoid code duplication.
SetTargetCPU.cmake
external/aocommon/CMake