Skip to content

Commit b9bc8c4

Browse files
clangpp -> clangxx
1 parent 474a607 commit b9bc8c4

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

dpctl-capi/cmake/modules/FindIntelSycl.cmake

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,22 +58,21 @@ else()
5858
endif()
5959

6060
# We will extract the version information from the compiler
61-
set(clangpp_cmd "${IntelSycl_ROOT}/bin/clang++")
62-
set(clangpp_arg "--version")
61+
set(clangxx_cmd "${IntelSycl_ROOT}/bin/clang++")
62+
set(clangxx_arg "--version")
6363

6464
# Check if dpcpp is available
6565
execute_process(
66-
COMMAND ${clangpp_cmd} ${clangpp_arg}
66+
COMMAND ${clangxx_cmd} ${clangxx_arg}
6767
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
68-
RESULT_VARIABLE clangpp_result
69-
OUTPUT_VARIABLE clangpp_ver
68+
RESULT_VARIABLE clangxx_result
69+
OUTPUT_VARIABLE clangxx_ver
7070
)
7171

7272
# If dpcpp is found then set the package variables
73-
if(${clangpp_result} MATCHES "0")
74-
string(REPLACE "\n" ";" IntelSycl_VERSION_LIST "${clangpp_ver}")
73+
if(${clangxx_result} MATCHES "0")
74+
string(REPLACE "\n" ";" IntelSycl_VERSION_LIST "${clangxx_ver}")
7575
set(IDX 0)
76-
# list(GET IntelSycl_VERSION_LIST 0 clangpp_ver_line)
7776
foreach(X ${IntelSycl_VERSION_LIST})
7877
message(STATUS "dpcpp ver[${IDX}]: ${X}")
7978
MATH(EXPR IDX "${IDX}+1")

0 commit comments

Comments
 (0)