I\'m working with Point Cloud Library. It\'s mostly in C++ When I compile it, gives such error:
[ 0%] Building CXX object common/CMakeFiles/pcl_common.dir/s
You can use the command below to see what is your CPU (for the compiler): gcc -march=native -Q --help=target | grep march
gcc -march=native -Q --help=target | grep march
Then you can add your cpu type in the ccmake CMAKE_CXX_FLAGS option, for me: CMAKE_CXX_FLAGS = -march=corei7-avx
CMAKE_CXX_FLAGS
CMAKE_CXX_FLAGS = -march=corei7-avx