Probably bug for InstallRequiredSystemLibraries in Windows with oneAPI

Probably this is a bug or wrong usage from me.

On a fresh Win10 with current VC, Intel oneAPI and cmake (see below) I get for

cmake_minimum_required(VERSION 3.12)
project(test)
enable_language(Fortran)
find_package(MKL)
include (InstallRequiredSystemLibraries)

the following output

cmake .. -G "NMake Makefiles"
-- The C compiler identification is MSVC 19.41.34120.0
-- The CXX compiler identification is MSVC 19.41.34120.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The Fortran compiler identification is IntelLLVM 2024.2.1 with MSVC-like command-line
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: C:/Program Files (x86)/Intel/oneAPI/compiler/latest/bin/ifx.exe - skipped
-- MKL_VERSION: 2024.2.0
-- MKL_ROOT: C:/Program Files (x86)/Intel/oneAPI/mkl/latest
-- MKL_ARCH: None, set to ` intel64` by default
-- MKL_LINK: None, set to ` dynamic` by default
-- MKL_INTERFACE_FULL: None, set to ` intel_ilp64` by default
-- MKL_THREADING: None, set to ` intel_thread` by default
-- MKL_MPI: None, set to ` intelmpi` by default
-- Found C:/Program Files (x86)/Intel/oneAPI/mkl/latest/lib/mkl_scalapack_ilp64_dll.lib
-- Found DLL: C:/Program Files (x86)/Intel/oneAPI/mkl/latest/bin/mkl_scalapack_ilp64.2.dll
-- Found C:/Program Files (x86)/Intel/oneAPI/mkl/latest/lib/mkl_cdft_core_dll.lib
-- Found DLL: C:/Program Files (x86)/Intel/oneAPI/mkl/latest/bin/mkl_cdft_core.2.dll
-- Found C:/Program Files (x86)/Intel/oneAPI/mkl/latest/lib/mkl_intel_ilp64_dll.lib
-- Found C:/Program Files (x86)/Intel/oneAPI/mkl/latest/lib/mkl_intel_thread_dll.lib
-- Found DLL: C:/Program Files (x86)/Intel/oneAPI/mkl/latest/bin/mkl_intel_thread.2.dll
-- Found C:/Program Files (x86)/Intel/oneAPI/mkl/latest/lib/mkl_core_dll.lib
-- Found DLL: C:/Program Files (x86)/Intel/oneAPI/mkl/latest/bin/mkl_core.2.dll
-- Found C:/Program Files (x86)/Intel/oneAPI/mkl/latest/lib/mkl_blacs_ilp64_dll.lib
-- Found DLL: C:/Program Files (x86)/Intel/oneAPI/mkl/latest/bin/mkl_blacs_ilp64.2.dll
-- Found C:/Program Files (x86)/Intel/oneAPI/compiler/latest/lib/libiomp5md.lib
CMake Warning at C:/Program Files/CMake/share/cmake-3.30/Modules/InstallRequiredSystemLibraries.cmake:733 (message):
system runtime library file does not exist: 'NOT-FOUND/cilkrts20.dll'
Call Stack (most recent call first):
CMakeLists.txt:5 (include)
CMake Warning at C:/Program Files/CMake/share/cmake-3.30/Modules/InstallRequiredSystemLibraries.cmake:733 (message):
system runtime library file does not exist: 'NOT-FOUND/libchkp.dll'
Call Stack (most recent call first):
CMakeLists.txt:5 (include)
CMake Warning at C:/Program Files/CMake/share/cmake-3.30/Modules/InstallRequiredSystemLibraries.cmake:733 (message):
system runtime library file does not exist:
'NOT-FOUND/libioffload_host.dll'
Call Stack (most recent call first):
CMakeLists.txt:5 (include)
CMake Warning at C:/Program Files/CMake/share/cmake-3.30/Modules/InstallRequiredSystemLibraries.cmake:733 (message):
system runtime library file does not exist: 'NOT-FOUND/libirngmd.dll'
Call Stack (most recent call first):
CMakeLists.txt:5 (include)
CMake Warning at C:/Program Files/CMake/share/cmake-3.30/Modules/InstallRequiredSystemLibraries.cmake:733 (message):
system runtime library file does not exist: 'NOT-FOUND/libmmd.dll'
Call Stack (most recent call first):
CMakeLists.txt:5 (include)
CMake Warning at C:/Program Files/CMake/share/cmake-3.30/Modules/InstallRequiredSystemLibraries.cmake:733 (message):
system runtime library file does not exist: 'NOT-FOUND/libmmdd.dll'
Call Stack (most recent call first):
CMakeLists.txt:5 (include)
CMake Warning at C:/Program Files/CMake/share/cmake-3.30/Modules/InstallRequiredSystemLibraries.cmake:733 (message):
system runtime library file does not exist: 'NOT-FOUND/libmpx.dll'
Call Stack (most recent call first):
CMakeLists.txt:5 (include)
CMake Warning at C:/Program Files/CMake/share/cmake-3.30/Modules/InstallRequiredSystemLibraries.cmake:733 (message):
system runtime library file does not exist: 'NOT-FOUND/liboffload.dll'
Call Stack (most recent call first):
CMakeLists.txt:5 (include)
CMake Warning at C:/Program Files/CMake/share/cmake-3.30/Modules/InstallRequiredSystemLibraries.cmake:733 (message):
system runtime library file does not exist: 'NOT-FOUND/svml_dispmd.dll'
Call Stack (most recent call first):
CMakeLists.txt:5 (include)
CMake Warning at C:/Program Files/CMake/share/cmake-3.30/Modules/InstallRequiredSystemLibraries.cmake:733 (message):
system runtime library file does not exist: 'NOT-FOUND/ifdlg100.dll'
Call Stack (most recent call first):
CMakeLists.txt:5 (include)
CMake Warning at C:/Program Files/CMake/share/cmake-3.30/Modules/InstallRequiredSystemLibraries.cmake:733 (message):
system runtime library file does not exist: 'NOT-FOUND/libicaf.dll'
Call Stack (most recent call first):
CMakeLists.txt:5 (include)
CMake Warning at C:/Program Files/CMake/share/cmake-3.30/Modules/InstallRequiredSystemLibraries.cmake:733 (message):
system runtime library file does not exist: 'NOT-FOUND/libifcoremd.dll'
Call Stack (most recent call first):
CMakeLists.txt:5 (include)
CMake Warning at C:/Program Files/CMake/share/cmake-3.30/Modules/InstallRequiredSystemLibraries.cmake:733 (message):
system runtime library file does not exist: 'NOT-FOUND/libifcoremdd.dll'
Call Stack (most recent call first):
CMakeLists.txt:5 (include)
CMake Warning at C:/Program Files/CMake/share/cmake-3.30/Modules/InstallRequiredSystemLibraries.cmake:733 (message):
system runtime library file does not exist: 'NOT-FOUND/libifcorert.dll'
Call Stack (most recent call first):
CMakeLists.txt:5 (include)
CMake Warning at C:/Program Files/CMake/share/cmake-3.30/Modules/InstallRequiredSystemLibraries.cmake:733 (message):
system runtime library file does not exist: 'NOT-FOUND/libifcorertd.dll'
Call Stack (most recent call first):
CMakeLists.txt:5 (include)
CMake Warning at C:/Program Files/CMake/share/cmake-3.30/Modules/InstallRequiredSystemLibraries.cmake:733 (message):
system runtime library file does not exist: 'NOT-FOUND/libifportmd.dll'
Call Stack (most recent call first):
CMakeLists.txt:5 (include)
CMake Warning at C:/Program Files/CMake/share/cmake-3.30/Modules/InstallRequiredSystemLibraries.cmake:743 (message):
system runtime library file does not exist: 'NOT-FOUND/1033'
Call Stack (most recent call first):
CMakeLists.txt:5 (include)
-- Configuring done (3.7s)
-- Generating done (0.0s)
-- Build files have been written to: C:/Users/fwein/code/test_cmake/build

I seems ${_Intel_redistdir} ist not set, I guess it is C:\Program Files (x86)\Intel\oneAPI\compiler\latest\bin\libifcorert.dll

What I cannot find on my system is e.g. cilkrts20.dll and libchkp.dll

I have the same issue with NOT-FOUND on Linux with older oneAPI and cmake

-- Using CMake 3.28.3 with generator Unix Makefiles
-- The C compiler identification is IntelLLVM 2024.2.0
-- The CXX compiler identification is IntelLLVM 2024.2.0
-- The Fortran compiler identification is IntelLLVM 2024.2.0
...
CMake Warning at /usr/share/cmake/Modules/InstallRequiredSystemLibraries.cmake:743 (message):
  system runtime library file does not exist: 'NOT-FOUND/irml'
Call Stack (most recent call first):