Skip to content

Commit 60ecb9d

Browse files
committed
Emit warning from CMake if SYCL_ENABLE_PLUGINS is used.
Tell user they should use SYCL_ENABLE_BACKENDS instead. Use the value given for the old flag for the new flag.
1 parent f298310 commit 60ecb9d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sycl/CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ if (NOT SYCL_COVERAGE_PATH)
1616
set(SYCL_COVERAGE_PATH "${CMAKE_CURRENT_BINARY_DIR}/profiles")
1717
endif()
1818

19+
if (SYCL_ENABLE_PLUGINS)
20+
message(WARNING "SYCL_ENABLE_PLUGINS has been renamed, please use SYCL_ENABLE_BACKENDS instead")
21+
set(SYCL_ENABLE_BACKENDS "${SYCL_ENABLE_PLUGINS}" CACHE STRING "Backends enabled for SYCL" FORCE)
22+
endif()
23+
1924
# If SYCL_ENABLE_BACKENDS is undefined, we default to enabling OpenCL and Level
2025
# Zero backends.
2126
if (NOT DEFINED SYCL_ENABLE_BACKENDS)

0 commit comments

Comments
 (0)