Skip to content

Commit f2a2af4

Browse files
committed
build: sycl: fix filtering of cpu examples
1 parent 328ae97 commit f2a2af4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ endforeach()
5454
# In case of SYCL, skip CPU examples that directly work with raw pointers
5555
if(DNNL_CPU_SYCL)
5656
foreach(f ${sources})
57-
if(${f} MATCHES "cpu_")
57+
get_filename_component(fname ${f} NAME)
58+
if(${fname} MATCHES "cpu_")
5859
list(REMOVE_ITEM sources "${f}")
5960
endif()
6061
endforeach()

0 commit comments

Comments
 (0)