代码在git 设置编译参数,这里是检查编译环境参数 #使用check_cxx_compiler_flag 前,必须 include(CheckCXXCompilerFlag) include(CheckCXXCompilerFlag) check_cxx_compiler_flag("-march=native" _march_native_works) check_cxx_compiler_flag("-xHost" _xhost_works) message("_march_native_works: ${_march_native_works}"