Commit 2933b58a authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #12909 from alalek:cmake_fix_baseline_detect_flags

parents 1c1d653f 0f07edde
......@@ -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})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment