Add possibility to set target CPU architecture
This PR provides a means for the user to set the target CPU used during compilation. If the (already existing) option PORTABLE
is set to OFF
, the native CPU will be used as target for compilation (existing behaviour). The user can override this by providing TARGET_CPU
on the command-line, e.g. -DTARGET_CPU=haswell
.
It uses the CMake file SetTargetCPU.cmake
provided by aocommon
in directory external/aocommon/CMake
.
Edited by Marcel Loose