mirror of
https://github.com/opencv/opencv.git
synced 2025-06-13 04:52:53 +08:00
cmake: don't change baseline compiler flags in 'detection' mode
This commit is contained in:
parent
d8ffddd075
commit
0f07edded6
@ -448,7 +448,9 @@ foreach(OPT ${CPU_KNOWN_OPTIMIZATIONS})
|
|||||||
if(NOT ";${CPU_BASELINE_FINAL};" MATCHES ";${OPT};")
|
if(NOT ";${CPU_BASELINE_FINAL};" MATCHES ";${OPT};")
|
||||||
list(APPEND CPU_BASELINE_FINAL ${OPT})
|
list(APPEND CPU_BASELINE_FINAL ${OPT})
|
||||||
endif()
|
endif()
|
||||||
ocv_append_optimization_flag(CPU_BASELINE_FLAGS ${OPT})
|
if(NOT CPU_BASELINE_DETECT) # Don't change compiler flags in 'detection' mode
|
||||||
|
ocv_append_optimization_flag(CPU_BASELINE_FLAGS ${OPT})
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
Loading…
Reference in New Issue
Block a user