File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -58,22 +58,21 @@ else()
58
58
endif ()
59
59
60
60
# 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" )
63
63
64
64
# Check if dpcpp is available
65
65
execute_process (
66
- COMMAND ${clangpp_cmd } ${clangpp_arg }
66
+ COMMAND ${clangxx_cmd } ${clangxx_arg }
67
67
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
70
70
)
71
71
72
72
# 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 } " )
75
75
set (IDX 0 )
76
- # list(GET IntelSycl_VERSION_LIST 0 clangpp_ver_line)
77
76
foreach (X ${IntelSycl_VERSION_LIST} )
78
77
message (STATUS "dpcpp ver[${IDX} ]: ${X} " )
79
78
MATH (EXPR IDX "${IDX} +1" )
You can’t perform that action at this time.
0 commit comments