diff --git a/clang/test/dpct/cmake_migration/case_012/expected.txt b/clang/test/dpct/cmake_migration/case_012/expected.txt index 49e3c3669e0b..02727138c561 100644 --- a/clang/test/dpct/cmake_migration/case_012/expected.txt +++ b/clang/test/dpct/cmake_migration/case_012/expected.txt @@ -1,4 +1,4 @@ -dpct_add_mkl_to_target(culib) -dpct_add_mkl_to_target( +dpct_helper_add_mkl_to_target(culib) +dpct_helper_add_mkl_to_target( culib ) diff --git a/clang/tools/dpct/DpctOptRules/cmake_script_migration_rule.yaml b/clang/tools/dpct/DpctOptRules/cmake_script_migration_rule.yaml index c48b4587bc34..f987cea54166 100644 --- a/clang/tools/dpct/DpctOptRules/cmake_script_migration_rule.yaml +++ b/clang/tools/dpct/DpctOptRules/cmake_script_migration_rule.yaml @@ -270,5 +270,5 @@ Priority: Fallback CmakeSyntax: cuda_add_cufft_to_target In: cuda_add_cufft_to_target(${target}) - Out: dpct_add_mkl_to_target(${target}) + Out: dpct_helper_add_mkl_to_target(${target}) diff --git a/clang/tools/dpct/cmake/dpct.cmake b/clang/tools/dpct/cmake/dpct.cmake index 5c2eb588a5c2..ec0bcfa39451 100644 --- a/clang/tools/dpct/cmake/dpct.cmake +++ b/clang/tools/dpct/cmake/dpct.cmake @@ -80,7 +80,7 @@ message("dpct.cmake: SYCL_HAS_FP16 is set true by default.") set(SYCL_HAS_FP16 TRUE) # Link MKL library to target -macro(DPCT_ADD_MKL_TO_TARGET target) +macro(DPCT_HELPER_ADD_MKL_TO_TARGET target) if(WIN32) target_link_libraries(${target} mkl_sycl_dll.lib mkl_intel_ilp64_dll.lib mkl_tbb_thread_dll.lib mkl_core_dll.lib OpenCL.lib) elseif(UNIX AND NOT APPLE)