File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ elseif(DEFINED ENV{ONEAPI_ROOT})
4949 message (FATAL_ERROR "Unsupported system." )
5050 endif ()
5151else ()
52- message (FATAL_ERROR,
52+ message (FATAL_ERROR
5353 "Could not locate a DPC++ installation. Either pass the path to a "
5454 "custom location using DPCTL_DPCPP_HOME_DIR or set the "
5555 " ONEAPI_ROOT environment variable."
@@ -95,11 +95,11 @@ if(${clangxx_result} MATCHES "0")
9595 set (IntelSycl_SYCL_INCLUDE_DIR ${IntelSycl_ROOT} /include /sycl)
9696 set (IntelSycl_LIBRARY_DIR ${IntelSycl_ROOT} /lib)
9797 if (CMAKE_SYSTEM_NAME STREQUAL "Windows" )
98- set (IntelSycl_SYCL_LIBRARY ${IntelSycl_ROOT} /lib /sycl.lib)
99- set (IntelSycl_OPENCL_LIBRARY ${IntelSycl_ROOT} /lib /OpenCL.lib)
98+ set (IntelSycl_SYCL_LIBRARY ${IntelSycl_LIBRARY_DIR} /sycl.lib)
99+ set (IntelSycl_OPENCL_LIBRARY ${IntelSycl_LIBRARY_DIR} /OpenCL.lib)
100100 elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux" )
101- set (IntelSycl_SYCL_LIBRARY ${IntelSycl_ROOT} /lib /libsycl.so)
102- set (IntelSycl_OPENCL_LIBRARY ${IntelSycl_ROOT} /lib /libOpenCL.so)
101+ set (IntelSycl_SYCL_LIBRARY ${IntelSycl_LIBRARY_DIR} /libsycl.so)
102+ set (IntelSycl_OPENCL_LIBRARY ${IntelSycl_LIBRARY_DIR} /libOpenCL.so)
103103 endif ()
104104
105105endif ()
You can’t perform that action at this time.
0 commit comments