Skip to content

Commit c90dee6

Browse files
committed
cmake: fix optimization filter
Check file name only: Excluding from source files list (optimization is disabled): C:/Code/SrcExt/OpenCV/Buildv3.2_x64/modules/core/opencl_kernels_core.cpp
1 parent 8532180 commit c90dee6

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)