From bed074b777d356031cbd3f496999b14e9292c567 Mon Sep 17 00:00:00 2001 From: Nikita Grigorian Date: Mon, 15 Dec 2025 17:23:33 -0800 Subject: [PATCH] align cmake for finding compiler with changes to OS compiler versioning --- libsyclinterface/cmake/modules/FindIntelSyclCompiler.cmake | 4 ++++ 1 file changed, 4 insertions(+) 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