File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ execute_process(
54
54
OUTPUT_VARIABLE dpcpp_ver
55
55
)
56
56
57
- # If dpcpp is found then set then set the package variables
57
+ # If dpcpp is found then set the package variables
58
58
if (${dpcpp_result} MATCHES "0" )
59
59
string (REPLACE "\n " ";" DPCPP_VERSION_LIST "${dpcpp_ver} " )
60
60
list (GET DPCPP_VERSION_LIST 0 dpcpp_ver_line )
@@ -89,7 +89,7 @@ if(${dpcpp_result} MATCHES "0")
89
89
90
90
# set package-level variables
91
91
set (DPCPP_ROOT ${DPCPP_INSTALL_DIR} )
92
- list (POP_FRONT DPCPP_VERSION_LIST DPCPP_VERSION )
92
+ list (GET DPCPP_VERSION_LIST 0 DPCPP_VERSION )
93
93
set (DPCPP_INCLUDE_DIR ${DPCPP_INSTALL_DIR} /include )
94
94
set (DPCPP_SYCL_INCLUDE_DIR ${DPCPP_INSTALL_DIR} /include/sycl )
95
95
set (DPCPP_LIBRARY_DIR ${DPCPP_INSTALL_DIR} /lib )
You can’t perform that action at this time.
0 commit comments