File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 24
24
# CPU_BASELINE_FINAL=<list> - final list of enabled compiler optimizations
25
25
# CPU_DISPATCH_FINAL=<list> - final list of dispatched optimizations
26
26
#
27
- # CPU_DISPATCH_FLAGS_${opt} - flags for source files compiled separately (_opt_avx2 .cpp)
27
+ # CPU_DISPATCH_FLAGS_${opt} - flags for source files compiled separately (<name>.avx2 .cpp)
28
28
29
29
set (CPU_ALL_OPTIMIZATIONS "SSE;SSE2;SSE3;SSSE3;SSE4_1;SSE4_2;POPCNT;AVX;FP16;AVX2;FMA3" ) # without AVX512
30
30
list (APPEND CPU_ALL_OPTIMIZATIONS NEON VFPV3 FP16 )
@@ -537,7 +537,7 @@ macro(ocv_compiler_optimization_process_sources SOURCES_VAR_NAME LIBS_VAR_NAME T
537
537
foreach (fname ${${SOURCES_VAR_NAME}} )
538
538
string (TOLOWER "${fname} " fname_LOWER )
539
539
get_filename_component (fname_LOWER "${fname_LOWER} " NAME )
540
- if (fname_LOWER MATCHES "\\ .(. *)\\ .cpp$" )
540
+ if (fname_LOWER MATCHES ".+ \\ .([^ \\ .] *)\\ .cpp$" )
541
541
string (TOUPPER "${CMAKE_MATCH_1} " OPT_ )
542
542
if (OPT_ MATCHES "(CUDA.*|DISPATCH.*|OCL)" ) # don't touch files like filename.cuda.cpp
543
543
list (APPEND __result "${fname} " )
You can’t perform that action at this time.
0 commit comments