Skip to content

Commit 4be2052

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

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libsyclinterface/cmake/modules/FindIntelSyclCompiler.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ if(${clangxx_result} MATCHES "0")
100100
MATH(EXPR IDX "${IDX}+1")
101101
endforeach()
102102
list(GET IntelSyclCompiler_VERSION_LIST 0 VERSION_STRING)
103+
if(${VERSION_STRING} MATCHES "Intel SYCL compiler Nightly [0-9]{4}-[0-9]{2}-[0-9]{2} build based on:")
104+
# Handle nightly build version string
105+
list(GET IntelSyclCompiler_VERSION_LIST 1 VERSION_STRING)
106+
endif()
103107

104108
# Get the dpcpp version
105109
string(REGEX MATCH

0 commit comments

Comments
 (0)