Skip to content

Commit 3278a06

Browse files
authored
We need at least CMake 3.15 for dpctl-capi. (#299)
* Do not use POP_FRONT in FindDPCPP.cmake so that we can use a cmake version older that 3.15.
1 parent 9c6760a commit 3278a06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpctl-capi/cmake/modules/FindDPCPP.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ execute_process(
5454
OUTPUT_VARIABLE dpcpp_ver
5555
)
5656

57-
# If dpcpp is found then set then set the package variables
57+
# If dpcpp is found then set the package variables
5858
if(${dpcpp_result} MATCHES "0")
5959
string(REPLACE "\n" ";" DPCPP_VERSION_LIST "${dpcpp_ver}")
6060
list(GET DPCPP_VERSION_LIST 0 dpcpp_ver_line)
@@ -89,7 +89,7 @@ if(${dpcpp_result} MATCHES "0")
8989

9090
# set package-level variables
9191
set(DPCPP_ROOT ${DPCPP_INSTALL_DIR})
92-
list(POP_FRONT DPCPP_VERSION_LIST DPCPP_VERSION)
92+
list(GET DPCPP_VERSION_LIST 0 DPCPP_VERSION)
9393
set(DPCPP_INCLUDE_DIR ${DPCPP_INSTALL_DIR}/include)
9494
set(DPCPP_SYCL_INCLUDE_DIR ${DPCPP_INSTALL_DIR}/include/sycl)
9595
set(DPCPP_LIBRARY_DIR ${DPCPP_INSTALL_DIR}/lib)

0 commit comments

Comments
 (0)