Skip to content

Commit 1c72825

Browse files
committed
Merge pull request opencv#8571 from alalek:cmake_fix_optimization_filter
2 parents 6b432b4 + c90dee6 commit 1c72825

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/OpenCVCompilerOptimizations.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,7 @@ macro(ocv_compiler_optimization_process_sources SOURCES_VAR_NAME LIBS_VAR_NAME T
520520
endforeach()
521521
foreach(fname ${${SOURCES_VAR_NAME}})
522522
string(TOLOWER "${fname}" fname_LOWER)
523+
get_filename_component(fname_LOWER "${fname_LOWER}" NAME)
523524
if(fname_LOWER MATCHES "\\.(.*)\\.cpp$")
524525
string(TOUPPER "${CMAKE_MATCH_1}" OPT_)
525526
if(OPT_ MATCHES "(CUDA.*|DISPATCH.*|OCL)") # don't touch files like filename.cuda.cpp

0 commit comments

Comments
 (0)