--- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,10 +33,6 @@ endif(APPLE) add_compile_options(-g -Wall -fPIC) include(CheckCXXCompilerFlag) - CHECK_CXX_COMPILER_FLAG("-march=native" COMPILER_SUPPORTS_ARCH_NATIVE) - if (COMPILER_SUPPORTS_ARCH_NATIVE) - add_compile_options(-march=native) - endif() else(UNIX) if(WIN32) set(PLAT "win32")