diff --git a/libsyclinterface/cmake/modules/FindIntelSyclCompiler.cmake b/libsyclinterface/cmake/modules/FindIntelSyclCompiler.cmake index fcc3eebafc..172a9b3150 100644 --- a/libsyclinterface/cmake/modules/FindIntelSyclCompiler.cmake +++ b/libsyclinterface/cmake/modules/FindIntelSyclCompiler.cmake @@ -100,6 +100,10 @@ if(${clangxx_result} MATCHES "0") MATH(EXPR IDX "${IDX}+1") endforeach() list(GET IntelSyclCompiler_VERSION_LIST 0 VERSION_STRING) + if("${VERSION_STRING}" MATCHES "Intel SYCL compiler Nightly") + # Handle nightly build version string + list(GET IntelSyclCompiler_VERSION_LIST 1 VERSION_STRING) + endif() # Get the dpcpp version string(REGEX MATCH