Skip to content

Commit 1a0b1b9

Browse files
committed
debug: use first index from IntelSyclCompiler_VERSION_LIST
1 parent a95056e commit 1a0b1b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libsyclinterface/cmake/modules/FindIntelSyclCompiler.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ if(${clangxx_result} MATCHES "0")
9999
message(STATUS "dpcpp ver[${IDX}]: ${X}")
100100
MATH(EXPR IDX "${IDX}+1")
101101
endforeach()
102-
list(GET IntelSyclCompiler_VERSION_LIST 0 VERSION_STRING)
102+
list(GET IntelSyclCompiler_VERSION_LIST 1 VERSION_STRING)
103103

104104
# Get the dpcpp version
105105
string(REGEX MATCH

0 commit comments

Comments
 (0)