diff --git a/conda-recipe/bld.bat b/conda-recipe/bld.bat index c4071c86c6..f400b45712 100644 --- a/conda-recipe/bld.bat +++ b/conda-recipe/bld.bat @@ -5,7 +5,13 @@ set "INCLUDE=%BUILD_PREFIX%\include;%INCLUDE%" "%PYTHON%" setup.py clean --all set "SKBUILD_ARGS=-G Ninja -- -DCMAKE_C_COMPILER:PATH=icx -DCMAKE_CXX_COMPILER:PATH=icx" -set "SYCL_INCLUDE_DIR_HINT=%BUILD_PREFIX%\Library\lib\clang\14.0.0" + +FOR %%V IN (14.0.0 15.0.0 16.0.0) DO @( + REM set DIR_HINT if directory exists + IF EXIST "%BUILD_PREFIX%\Library\lib\clang\%%V\" ( + SET "SYCL_INCLUDE_DIR_HINT=%BUILD_PREFIX%\Library\lib\clang\%%V" + ) +) set "PLATFORM_DIR=%PREFIX%\Library\share\cmake-3.22\Modules\Platform" set "FN=Windows-IntelLLVM.cmake"