Skip to content

Commit a3bd80c

Browse files
authored
[SYCL] Make sycl depend on libsycldevice (#1380)
Signed-off-by: Vyacheslav Zakharin <[email protected]>
1 parent 91e9c76 commit a3bd80c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

sycl/CMakeLists.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -228,13 +228,6 @@ if (SYCL_ENABLE_XPTI_TRACING)
228228
endif()
229229
endif()
230230

231-
# Enable new IN_LIST operator.
232-
cmake_policy(SET CMP0057 NEW)
233-
234-
if (libdevice IN_LIST LLVM_ENABLE_PROJECTS)
235-
add_dependencies(sycl-toolchain libsycldevice)
236-
endif()
237-
238231
if (NOT DEFINED LLVM_INCLUDE_TESTS)
239232
set(LLVM_INCLUDE_TESTS ON)
240233
endif()

sycl/source/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,13 @@ if (MSVC)
181181

182182
endif()
183183

184+
# Enable new IN_LIST operator.
185+
cmake_policy(SET CMP0057 NEW)
186+
187+
if (libdevice IN_LIST LLVM_ENABLE_PROJECTS)
188+
add_dependencies(sycl libsycldevice)
189+
endif()
190+
184191
install(TARGETS ${SYCL_RT_LIBS}
185192
ARCHIVE DESTINATION "lib${LLVM_LIBDIR_SUFFIX}" COMPONENT sycl
186193
LIBRARY DESTINATION "lib${LLVM_LIBDIR_SUFFIX}" COMPONENT sycl

0 commit comments

Comments
 (0)