You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
596 B

  1. --- a/CMakeLists.txt
  2. +++ b/CMakeLists.txt
  3. @@ -252,15 +252,6 @@ set(AVX2_OPT OFF)
  4. set(FMA_OPT OFF)
  5. set(SSE41_OPT OFF)
  6. set(MARCH_NATIVE_OPT OFF)
  7. -foreach(flag ${_enable_vector_unit_list}) # from OptimizeForArchitecture()
  8. - string(TOUPPER "${flag}" flag)
  9. - string(REPLACE "\." "_" flag "${flag}")
  10. - set(simd_flags "${simd_flags} -D${flag}")
  11. - string(REPLACE "_" "" flag "${flag}")
  12. - if("${flag}" MATCHES "AVX|AVX2|FMA|SSE41")
  13. - set("${flag}_OPT" ON)
  14. - endif()
  15. -endforeach(flag)
  16. if (NOT MSVC)
  17. set(MARCH_NATIVE_FLAGS "${MARCH_NATIVE_FLAGS} -O3 -ffast-math")
  18. endif()