Skip to content

Commit c613ab6

Browse files
committed
align cmake for finding compiler with changes to OS compiler versioning
1 parent 3b0bfd6 commit c613ab6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)