From 40f6a4d5f67426726b8bda7e4d5b337bfd249fee Mon Sep 17 00:00:00 2001 From: jackzhang235 <56432943+jackzhang235@users.noreply.github.com> Date: Tue, 14 Apr 2020 10:50:15 +0800 Subject: [PATCH] [MLU] add mlu's missing "APPEND ${fake_kernels_src_list}" in lite.cmake (#3379) [MLU] add mlu's missing "APPEND ${fake_kernels_src_list}" in lite.cmake --- cmake/lite.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/lite.cmake b/cmake/lite.cmake index a07edaa575..47e21e6e80 100644 --- a/cmake/lite.cmake +++ b/cmake/lite.cmake @@ -381,6 +381,9 @@ function(add_kernel TARGET device level) endif() if ("${device}" STREQUAL "MLU") if (NOT LITE_WITH_MLU) + foreach(src ${args_SRCS}) + file(APPEND ${fake_kernels_src_list} "${CMAKE_CURRENT_SOURCE_DIR}/${src}\n") + endforeach() return() endif() set(mlu_kernels "${mlu_kernels};${TARGET}" CACHE INTERNAL "") -- GitLab