Skip to content

Commit e75366c

Browse files
committed
[SYCL] Check project lists instead of targets
1 parent c2bd446 commit e75366c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ if(OpenCL_INSTALL_KHRONOS_ICD_LOADER AND TARGET OpenCL-ICD)
384384
endif()
385385

386386
# Build and install lld as part of the sycl-toolchain if available
387-
if(TARGET lld)
387+
if("lld" IN_LIST LLVM_ENABLE_PROJECTS)
388388
add_dependencies(sycl-toolchain lld)
389389
list(APPEND SYCL_TOOLCHAIN_DEPLOY_COMPONENTS lld)
390390
endif()

0 commit comments

Comments
 (0)