Merge pull request #12909 from alalek:cmake_fix_baseline_detect_flags

pull/12928/head
Alexander Alekhin 7 years ago
commit 2933b58a2f
  1. 2
      cmake/OpenCVCompilerOptimizations.cmake

@ -448,9 +448,11 @@ foreach(OPT ${CPU_KNOWN_OPTIMIZATIONS})
if(NOT ";${CPU_BASELINE_FINAL};" MATCHES ";${OPT};")
list(APPEND CPU_BASELINE_FINAL ${OPT})
endif()
if(NOT CPU_BASELINE_DETECT) # Don't change compiler flags in 'detection' mode
ocv_append_optimization_flag(CPU_BASELINE_FLAGS ${OPT})
endif()
endif()
endif()
endforeach()
foreach(OPT ${CPU_BASELINE_REQUIRE})

Loading…
Cancel
Save