# Probably bug for InstallRequiredSystemLibraries in Windows with oneAPI

**URL:** https://discourse.cmake.org/t/probably-bug-for-installrequiredsystemlibraries-in-windows-with-oneapi/12680
**Category:** Usage
**Created:** [October 4, 2024, 11:17am UTC](https://discourse.cmake.org/t/probably-bug-for-installrequiredsystemlibraries-in-windows-with-oneapi/12680 "2024-10-04T11:17:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Fabian188](https://discourse.cmake.org/user_avatar/discourse.cmake.org/fabian188/32/2934_2.png) [@Fabian188](https://discourse.cmake.org/u/Fabian188)
#### Post date: [October 4, 2024, 11:17am UTC](https://discourse.cmake.org/t/probably-bug-for-installrequiredsystemlibraries-in-windows-with-oneapi/12680/1 "2024-10-04T11:17:54Z")

</div>

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

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

```

the following output

```auto
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`

---

<div class="post-metadata">

### Author: ![Fabian188](https://discourse.cmake.org/user_avatar/discourse.cmake.org/fabian188/32/2934_2.png) [@Fabian188](https://discourse.cmake.org/u/Fabian188)
#### Post date: [October 6, 2024, 9:12pm UTC](https://discourse.cmake.org/t/probably-bug-for-installrequiredsystemlibraries-in-windows-with-oneapi/12680/2 "2024-10-06T21:12:45Z")

</div>

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

```auto
-- 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):

```
